mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 00:14:10 +08:00
dev mode history
This commit is contained in:
@@ -25,7 +25,7 @@ export class HistoryListener {
|
|||||||
const pageCreationTime = new Date(page.createdAt).getTime();
|
const pageCreationTime = new Date(page.createdAt).getTime();
|
||||||
const currentTime = Date.now();
|
const currentTime = Date.now();
|
||||||
const FIVE_MINUTES = this.environmentService.isDevelopment()
|
const FIVE_MINUTES = this.environmentService.isDevelopment()
|
||||||
? 30 * 1000
|
? 60 * 1000
|
||||||
: 5 * 60 * 1000;
|
: 5 * 60 * 1000;
|
||||||
|
|
||||||
if (currentTime - pageCreationTime < FIVE_MINUTES) {
|
if (currentTime - pageCreationTime < FIVE_MINUTES) {
|
||||||
|
|||||||
Reference in New Issue
Block a user