mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-22 18:42:48 +03:00
fix(server): use iso date string as history query input (#5035)
This commit is contained in:
parent
ca07b143ef
commit
3710bcdc14
@ -119,12 +119,7 @@ export class WorkspacesController {
|
||||
const docId = new DocID(guid, ws);
|
||||
let ts;
|
||||
try {
|
||||
const timeNum = parseInt(timestamp);
|
||||
if (Number.isNaN(timeNum)) {
|
||||
throw new Error('Invalid timestamp');
|
||||
}
|
||||
|
||||
ts = new Date(timeNum);
|
||||
ts = new Date(timestamp);
|
||||
} catch (e) {
|
||||
throw new Error('Invalid timestamp');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user