Skip to content

Commit

Permalink
clear cache to remove any duplicate contrains
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Jan 26, 2025
1 parent 856b361 commit d077ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/ENGINE/E621/autopost/getPictures.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function storePictures(channelID, pool) {
artist: post.tags.artist[0],
directLink: post.file.url,
}));

await postcache.destroy({ where: { channelID } }).catch(ERR);
await postcache.bulkCreate(poolCurated).catch(ERR);
}

Expand Down

0 comments on commit d077ea4

Please sign in to comment.