Remove saving Apps in the legacy format

This commit is contained in:
Jonas Lochmann
2022-11-14 01:00:00 +01:00
parent f5198c7c0b
commit 89e9b85bda
8 changed files with 40 additions and 205 deletions
-17
View File
@@ -40,23 +40,6 @@ export async function removeDevice ({ database, familyId, deviceId, websocket, t
throw new Conflict()
}
// remove app entries
await database.app.destroy({
where: {
familyId,
deviceId
},
transaction
})
await database.appActivity.destroy({
where: {
familyId,
deviceId
},
transaction
})
// remove as current device
await database.user.update({
currentDevice: ''