minor refactors and additional logs

This commit is contained in:
2024-09-24 14:47:50 +02:00
parent 498b1d82d9
commit d39ccba927
4 changed files with 25 additions and 10 deletions

@ -479,11 +479,11 @@ function saveSongInfoData(postUrl: string, songs: SongInfo[]): Promise<void> {
}
export async function savePost(post: Post, songs: SongInfo[]) {
log.debug(`Saving post ${post.url}`);
if (!databaseReady) {
await waitReady();
}
log.debug(`Saving post ${post.url}`);
const account = post.account;
await saveAccountData(account);
log.debug(`Saved account data ${post.url}`);