init nostr

This commit is contained in:
Travis Shears 2024-06-25 11:46:54 +02:00
parent 4f94b5fc1f
commit bec30f2ab0
7 changed files with 1082 additions and 9 deletions

View file

@ -101,9 +101,7 @@ exports.run = async (event: any, context: any) => {
for (const post of posts) {
logger.info({ post }, "saving post");
const savedNewPost = await savePost(post);
if (savedNewPost) {
await saveTags(post, savedNewPost.id);
await saveImages(post, savedNewPost.id);
}
await saveTags(post, savedNewPost.id);
await saveImages(post, savedNewPost.id);
}
};