diff options
| author | Zephyrrus <[email protected]> | 2021-01-07 21:36:56 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2021-01-07 21:36:56 +0200 |
| commit | b3df1dd7a653909fb3f18ed7c0c91ffa347480fb (patch) | |
| tree | 785a168e85aa6ebe7e8e7e8ea4a3f54dbe3c7efc /src/api/routes/albums/albumZipGET.js | |
| parent | chore: update knex, mdi/font, nuxtjs/axios, nuxt, systeminformation (diff) | |
| download | host.fuwn.me-b3df1dd7a653909fb3f18ed7c0c91ffa347480fb.tar.xz host.fuwn.me-b3df1dd7a653909fb3f18ed7c0c91ffa347480fb.zip | |
feat: change mutation timestamp on every database mutation
Diffstat (limited to 'src/api/routes/albums/albumZipGET.js')
| -rw-r--r-- | src/api/routes/albums/albumZipGET.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/routes/albums/albumZipGET.js b/src/api/routes/albums/albumZipGET.js index c560cff..22b0b6f 100644 --- a/src/api/routes/albums/albumZipGET.js +++ b/src/api/routes/albums/albumZipGET.js @@ -74,7 +74,8 @@ class albumGET extends Route { Util.createZip(filesToZip, album); await db.table('albums') .where('id', link.albumId) - .update('zippedAt', db.fn.now()); + .update('zippedAt', db.fn.now()) + .wasMutated(); const filePath = path.join(__dirname, '../../../../', process.env.UPLOAD_FOLDER, 'zips', `${album.userId}-${album.id}.zip`); const fileName = `${process.env.SERVICE_NAME}-${identifier}.zip`; |