summaryrefslogtreecommitdiff
path: root/lib/models/revision.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix: upgrade sequelize to latest version to fix CVEBoHong Li2019-06-111-187/+187
| | | | Signed-off-by: BoHong Li <a60814billy@gmail.com>
* Rework debug loggingSheogorath2019-06-081-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>
* lib/models/revision.js: make independent of exec-pathWilliButz2018-09-261-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>
* Use cascaded deletesSheogorath2018-05-251-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>
* Fix field type to prevent data truncation of authorship (#721)Max Wu2018-02-091-1/+1
| | | | * Fix field type to prevent data truncation of authorship
* Ignore empty values for revision.Sheogorath2018-01-181-2/+2
| | | | Fixes #420
* Fix #521 by converting content fields to LONGTEXT in MySQL, to prevent ↵Claudius Coenen2017-10-161-3/+3
| | | | truncation of data.
* createdAt DESC with quotation marks did not work with MySQL fixes #565Claudius Coenen2017-10-091-4/+4
|
* refactor: Remove `require` extension filenameBoHong Li2017-05-081-2/+2
|
* Use strict mode in all backend filesBoHong Li2017-03-141-0/+1
| | | | add ‘use strict’ in all backend file
* Use JavaScript Standard StyleBoHong Li2017-03-081-290/+290
| | | | | Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
* Refactor data processing to model definitionWu Cheng-Han2017-01-021-0/+12
|
* Update to remove null byte before saving to DB and remove null byte on changesWu Cheng-Han2017-01-021-4/+16
|
* Remove LZString compression for data storageWu Cheng-Han2017-01-021-6/+5
|
* Add dmp worker to leverage CPU intensive calculation to child processWu Cheng-Han2016-11-181-102/+79
|
* Change revision saving policy periodWu Cheng-Han2016-10-151-2/+2
|
* Update to add revision saving policyWu Cheng-Han2016-09-181-3/+23
|
* Add support of saving authorship to revisionWu Cheng-Han2016-07-301-3/+10
|
* Add support of saving authors and authorshipWu Cheng-Han2016-07-301-0/+3
|
* Fix typoWu Cheng-Han2016-07-301-1/+1
|
* Add support of saving note revision and improve app start and stop procedure ↵Cheng-Han, Wu2016-06-171-0/+276
to ensure data integrity