trilium: 0.47.3 -> 0.47.4

This commit is contained in:
FliegendeWurst 2021-06-05 13:59:50 +02:00
parent 934bd6d7b7
commit 287e0f248a
2 changed files with 11 additions and 8 deletions

View file

@ -1,5 +1,5 @@
diff --git a/src/services/log.js b/src/services/log.js diff --git a/src/services/log.js b/src/services/log.js
index b4c39e99..4c249154 100644 index 1345ce39..a9770516 100644
--- a/src/services/log.js --- a/src/services/log.js
+++ b/src/services/log.js +++ b/src/services/log.js
@@ -1,14 +1,5 @@ @@ -1,14 +1,5 @@
@ -17,7 +17,7 @@ index b4c39e99..4c249154 100644
const SECOND = 1000; const SECOND = 1000;
const MINUTE = 60 * SECOND; const MINUTE = 60 * SECOND;
const HOUR = 60 * MINUTE; const HOUR = 60 * MINUTE;
@@ -16,41 +7,7 @@ const DAY = 24 * HOUR; @@ -16,45 +7,7 @@ const DAY = 24 * HOUR;
const NEW_LINE = process.platform === "win32" ? '\r\n' : '\n'; const NEW_LINE = process.platform === "win32" ? '\r\n' : '\n';
@ -46,16 +46,19 @@ index b4c39e99..4c249154 100644
-function checkDate(millisSinceMidnight) { -function checkDate(millisSinceMidnight) {
- if (millisSinceMidnight >= DAY) { - if (millisSinceMidnight >= DAY) {
- initLogFile(); - initLogFile();
-
- millisSinceMidnight =- DAY;
- } - }
-
- return millisSinceMidnight;
-} -}
- -
function log(str) { function log(str) {
- const millisSinceMidnight = Date.now() - todaysMidnight.getTime(); - let millisSinceMidnight = Date.now() - todaysMidnight.getTime();
- -
- checkDate(millisSinceMidnight); - millisSinceMidnight = checkDate(millisSinceMidnight);
- -
- logFile.write(formatTime(millisSinceMidnight) + ' ' + str + NEW_LINE); - logFile.write(formatTime(millisSinceMidnight) + ' ' + str + NEW_LINE);
- -
console.log(str); console.log(str);
} }

View file

@ -19,16 +19,16 @@ let
maintainers = with maintainers; [ fliegendewurst ]; maintainers = with maintainers; [ fliegendewurst ];
}; };
version = "0.47.3"; version = "0.47.4";
desktopSource = { desktopSource = {
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz"; url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz";
sha256 = "05l8yiqbqh2yr4cfbivpmj5q3jyzqz86wni36wcjlcg3rccms0hc"; sha256 = "0hvp6rpvgda12ficzqkj7kllgmpzc8n4rvpgv0zi6fa5alkr944x";
}; };
serverSource = { serverSource = {
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz"; url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz";
sha256 = "03nsvalaa0rch9i1kh6p5ynnsdmidm5zrw42klj70bamviklzsnh"; sha256 = "01bbg7ssszrq27zk7xzil2mawk1659h1hw68yvk8lbgc4n9phkqk";
}; };
in { in {