performance enhancements

This commit is contained in:
cv
2021-05-02 15:05:32 +02:00
parent 7f94907056
commit 9715e13152
11 changed files with 137 additions and 63 deletions
+2
View File
@@ -14,6 +14,7 @@ function incrementFrom(start, incr = 1) {
db.get('events')
.find({ id: e.id })
.assign({ order: e.order + incr })
.update('revision', (n) => n + 1)
.write();
});
}
@@ -163,6 +164,7 @@ exports.eventsPatch = async (req, res) => {
db.get('events')
.find({ id: req.body.id })
.assign({ ...req.body })
.update('revision', (n) => n + 1)
.write();
// update timer