Fix savePost() never resolving

This commit is contained in:
Max Nuding 2023-04-14 20:00:31 +02:00
parent 4e7196182c
commit c57828d3e2
Signed by: phlaym
GPG Key ID: A06651BAB6777237

View File

@ -196,7 +196,7 @@ export async function savePost(post: Post): Promise<undefined> {
if (!databaseReady) {
await waitReady();
}
return new Promise((resolve, reject) => {
return await new Promise<undefined>((resolve, reject) => {
console.debug(`Saving post ${post.url}`);
const account = post.account;
db.run(