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

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