summaryrefslogtreecommitdiff
path: root/lib/models/revision.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-15Linter: Fix all lint errorsPhilip Molares1-24/+24
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2019-06-11fix: upgrade sequelize to latest version to fix CVEBoHong Li1-187/+187
Signed-off-by: BoHong Li <a60814billy@gmail.com>
2019-06-08Rework debug loggingSheogorath1-3/+2
We have various places with overly simple if statements that could be handled by our logging library. Also a lot of those logs are not marked as debug logs but as info logs, which can cause confusion during debugging. This patch removed unneeded if clauses around debug logging statements, reworks debug log messages towards ECMA templates and add some new logging statements which might be helpful in order to debug things like image uploads. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-09-26lib/models/revision.js: make independent of exec-pathWilliButz1-1/+2
Previously calling `app.js` from another directory than the base directory of CodiMD would result in an error being thrown because `lib/workers/dmpWorker.js` could not be found. This change makes the function call independent of the path CodiMD is started from. Signed-off-by: WilliButz <wbutz@cyberfnord.de>
2018-05-25Use cascaded deletesSheogorath1-1/+3
When we delete a user we should delete all the notes that belong to this user including the revisions of these notes. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-02-09Fix field type to prevent data truncation of authorship (#721)Max Wu1-1/+1
* Fix field type to prevent data truncation of authorship
2018-01-18Ignore empty values for revision.Sheogorath1-2/+2
Fixes #420
2017-10-16Fix #521 by converting content fields to LONGTEXT in MySQL, to prevent ↵Claudius Coenen1-3/+3
truncation of data.
2017-10-09createdAt DESC with quotation marks did not work with MySQL fixes #565Claudius Coenen1-4/+4
2017-05-08refactor: Remove `require` extension filenameBoHong Li1-2/+2
2017-03-14Use strict mode in all backend filesBoHong Li1-0/+1
add ‘use strict’ in all backend file
2017-03-08Use JavaScript Standard StyleBoHong Li1-290/+290
Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
2017-01-02Refactor data processing to model definitionWu Cheng-Han1-0/+12
2017-01-02Update to remove null byte before saving to DB and remove null byte on changesWu Cheng-Han1-4/+16
2017-01-02Remove LZString compression for data storageWu Cheng-Han1-6/+5
2016-11-18Add dmp worker to leverage CPU intensive calculation to child processWu Cheng-Han1-102/+79
2016-10-15Change revision saving policy periodWu Cheng-Han1-2/+2
2016-09-18Update to add revision saving policyWu Cheng-Han1-3/+23
2016-07-30Add support of saving authorship to revisionWu Cheng-Han1-3/+10
2016-07-30Add support of saving authors and authorshipWu Cheng-Han1-0/+3
2016-07-30Fix typoWu Cheng-Han1-1/+1
2016-06-17Add support of saving note revision and improve app start and stop procedure ↵Cheng-Han, Wu1-0/+276
to ensure data integrity