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) {
|
if (!databaseReady) {
|
||||||
await waitReady();
|
await waitReady();
|
||||||
}
|
}
|
||||||
return new Promise((resolve, reject) => {
|
return await new Promise<undefined>((resolve, reject) => {
|
||||||
console.debug(`Saving post ${post.url}`);
|
console.debug(`Saving post ${post.url}`);
|
||||||
const account = post.account;
|
const account = post.account;
|
||||||
db.run(
|
db.run(
|
||||||
|
Loading…
Reference in New Issue
Block a user