Skip to content

Commit

Permalink
hotfix actually delete records
Browse files Browse the repository at this point in the history
  • Loading branch information
imagineeeinc committed Oct 23, 2024
1 parent dff8af0 commit e778e7e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions server/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ export async function save(data) {
}
})
if (i !== null) {
if (timestamp < n.lastEdited) {
if (!deleted) {
oldData.splice(i, 1, n)
updated.push(i)
} else {
deletedList.push(i)
}
if (timestamp < n.lastEdited && !deleted) {
oldData.splice(i, 1, n)
updated.push(i)
} else if (deleted) {
deletedList.push(i)
}
} else {
if (n.delete === false) {
Expand Down

0 comments on commit e778e7e

Please sign in to comment.