fix: chaite

This commit is contained in:
ikechan8370 2025-03-11 23:34:32 +08:00
parent fbcf4e6c08
commit a16538f322
12 changed files with 60 additions and 50 deletions

View file

@ -1,15 +1,14 @@
import ChatGPTStorage from '../storage.js'
import { ChaiteStorage } from 'chaite'
/**
* @extends {ChaiteStorage<import('chaite').ToolDTO>}
*/
class LowDBToolSettingsStorage extends ChaiteStorage {
export class LowDBToolsStorage extends ChaiteStorage {
/**
*
* @param { LowDBStorage } storage
*/
constructor (storage = ChatGPTStorage) {
constructor (storage) {
super()
this.storage = storage
/**
@ -64,5 +63,3 @@ class LowDBToolSettingsStorage extends ChaiteStorage {
await this.collection.deleteAll()
}
}
export default new LowDBToolSettingsStorage()