Fix savePost() never resolving
This commit is contained in:
parent
4e7196182c
commit
c57828d3e2
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user