aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/files/albumDelPOST.js
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2021-01-07 21:36:56 +0200
committerZephyrrus <[email protected]>2021-01-07 21:36:56 +0200
commitb3df1dd7a653909fb3f18ed7c0c91ffa347480fb (patch)
tree785a168e85aa6ebe7e8e7e8ea4a3f54dbe3c7efc /src/api/routes/files/albumDelPOST.js
parentchore: update knex, mdi/font, nuxtjs/axios, nuxt, systeminformation (diff)
downloadhost.fuwn.me-b3df1dd7a653909fb3f18ed7c0c91ffa347480fb.tar.xz
host.fuwn.me-b3df1dd7a653909fb3f18ed7c0c91ffa347480fb.zip
feat: change mutation timestamp on every database mutation
Diffstat (limited to 'src/api/routes/files/albumDelPOST.js')
-rw-r--r--src/api/routes/files/albumDelPOST.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/routes/files/albumDelPOST.js b/src/api/routes/files/albumDelPOST.js
index 8304163..63da791 100644
--- a/src/api/routes/files/albumDelPOST.js
+++ b/src/api/routes/files/albumDelPOST.js
@@ -19,7 +19,8 @@ class albumDelPOST extends Route {
try {
await db.table('albumsFiles')
.where({ fileId, albumId })
- .delete();
+ .delete()
+ .wasMutated();
} catch (error) {
return super.error(res, error);
}