aboutsummaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorPitu <[email protected]>2018-09-16 17:53:14 -0300
committerPitu <[email protected]>2018-09-16 17:53:14 -0300
commit7df56eb91c4cf22c6e7323e24881bc527a2c1ad6 (patch)
tree61c6c89732365279ef3e19cba4c9298c8bd728bd /src/api
parentLinks can now be created (diff)
downloadhost.fuwn.me-7df56eb91c4cf22c6e7323e24881bc527a2c1ad6.tar.xz
host.fuwn.me-7df56eb91c4cf22c6e7323e24881bc527a2c1ad6.zip
Switching to postgresql as the default had some implications
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/files/uploadPOST.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/api/routes/files/uploadPOST.js b/src/api/routes/files/uploadPOST.js
index 9ecf7ee..9769bed 100644
--- a/src/api/routes/files/uploadPOST.js
+++ b/src/api/routes/files/uploadPOST.js
@@ -137,7 +137,11 @@ class uploadPOST extends Route {
ip: req.ip,
createdAt: now,
editedAt: now
- });
+ }, 'id');
+ /*
+ TODO: Something funny here, I'm not sure since I don't use MySQL but I think the argument id
+ on the insert function on top behaves differently on psql/mysql/sqlite. Needs testing.
+ */
} catch (error) {
log.error('There was an error saving the file to the database');
log.error(error);