Fix savePost() never resolving

This commit is contained in:
2023-04-14 20:00:31 +02:00
parent 4e7196182c
commit c57828d3e2

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(