refactor: change game delete to soft delete

This commit is contained in:
JackEnx 2024-04-21 16:36:34 -03:00
parent 8343b66d67
commit 797f5ee0d8
17 changed files with 115 additions and 44 deletions

View file

@ -8,6 +8,9 @@ import sortBy from "lodash/sortBy";
const getLibrary = async (_event: Electron.IpcMainInvokeEvent) =>
gameRepository
.find({
where: {
isDeleted: false,
},
order: {
createdAt: "desc",
},