Make storage async
All checks were successful
Setup testing environment and test the code / build (push) Successful in 1m4s
Publish to NPM / build-and-publish (release) Successful in 41s

This commit is contained in:
2026-04-08 18:10:46 +02:00
parent d7422efcf0
commit 7d50692ece
11 changed files with 29 additions and 29 deletions

View File

@@ -65,8 +65,8 @@ export class DMService {
}
}
getQuick(): Message[] {
const messages = this.database.get("messages", this.chatid)
async getQuick(): Promise<Message[]> {
const messages = await this.database.get("messages", this.chatid)
if (messages) {
return JSON.parse(messages)
} else {