mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: chaite
This commit is contained in:
parent
fbcf4e6c08
commit
a16538f322
12 changed files with 60 additions and 50 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue