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,12 +1,11 @@
import ChatGPTStorage from '../storage.js'
import { ChaiteStorage } from 'chaite'
class LowDBChannelStorage extends ChaiteStorage {
export class LowDBChannelStorage extends ChaiteStorage {
/**
*
* @param { LowDBStorage } storage
*/
constructor (storage = ChatGPTStorage) {
constructor (storage) {
super()
this.storage = storage
/**
@ -61,5 +60,3 @@ class LowDBChannelStorage extends ChaiteStorage {
await this.collection.deleteAll()
}
}
export default new LowDBChannelStorage()