mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: generateId
This commit is contained in:
parent
64c77877ac
commit
3c83e270df
6 changed files with 14 additions and 5 deletions
|
|
@ -2,6 +2,7 @@ import { ChaiteStorage, ToolDTO } from 'chaite'
|
|||
import sqlite3 from 'sqlite3'
|
||||
import path from 'path'
|
||||
import fs from 'fs'
|
||||
import { generateId } from '../../../../utils/common.js'
|
||||
|
||||
/**
|
||||
* @extends {ChaiteStorage<import('chaite').ToolDTO>}
|
||||
|
|
@ -212,7 +213,7 @@ export class SQLiteToolsStorage extends ChaiteStorage {
|
|||
await this.ensureInitialized()
|
||||
|
||||
if (!id) {
|
||||
id = this._generateId()
|
||||
id = generateId()
|
||||
}
|
||||
|
||||
// 加上时间戳
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue