Skip to content

Commit

Permalink
brain is not brainin πŸ™ƒ (#109)
Browse files Browse the repository at this point in the history
* brain is not brainin πŸ™ƒ

* L Format
  • Loading branch information
typesafeui authored Aug 27, 2024
1 parent 103498d commit 99feff6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/lib/persistence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,11 @@ export async function fetchAndUpdateDatabase() {

await db.post.updateMany({
where: {
name: {
not: PRODUCT_HUNT_NAME,
},
id: {
notIn: posts.filter((product) => product.name !== PRODUCT_HUNT_NAME).map((post) => post.id),
notIn: posts.map((post) => post.id),
},
deleted: false,
},
Expand Down

0 comments on commit 99feff6

Please sign in to comment.