summaryrefslogtreecommitdiff
path: root/lib/history.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-15Linter: Fix all lint errorsPhilip Molares1-26/+26
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2019-10-27Move note actions to their own file.David Mehren1-20/+20
Because of circular import problems, this commit also moves the error messages from response.js to errors.js Signed-off-by: David Mehren <dmehren1@gmail.com>
2019-06-08Rework debug loggingSheogorath1-5/+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-07-27Further improvement of error handling for LZStringSheogorath1-1/+5
This does some more in depth check on the error message and minimizes the log noise that is caused by LZString. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-07-27Minimize number of errors in LZString parsing errors for historySheogorath1-0/+9
Right now we still see a lot of LZString parsing errors in the logs. They probably come from the user history. We should minimize the number by add the basic length check there as well. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-10Improve history migration performanceMax Wu1-11/+5
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-26Add migration for LZString compressed note id in historyMax Wu1-1/+21
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2017-05-08refactor: Remove `require` extension filenameBoHong Li1-3/+3
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-147/+150
Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
2017-02-03Update to remove history cache to lower application couplingWu Cheng-Han1-100/+47
2016-12-18Try to fix when server have heavy loading cache might not update to db properlyWu Cheng-Han1-1/+1
2016-11-16Revert "Add workers for history to leverage CPU intensive work loading"Wu Cheng-Han1-33/+46
This reverts commit b5920fbbd1ceb595456da18f7d458b63d1a960bf.
2016-11-07Add workers for history to leverage CPU intensive work loadingWu Cheng-Han1-46/+33
2016-10-11Fix history time should save in UNIX timestamp to avoid time offset issueWu Cheng-Han1-1/+1
2016-10-11Fix new note with empty content not saving to history and remove debug codeWu Cheng-Han1-4/+1
2016-10-10Update to add cache to historyWu Cheng-Han1-0/+228