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