1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-23 18:53:36 +02:00

Plugin Repo: Update stats every 7 days

This commit is contained in:
Laurent Cozic 2021-06-10 00:11:11 +02:00
parent ca487ade9a
commit cf86ffc36e

View File

@ -141,7 +141,7 @@ export default async function(args: Args) {
await doSaveStats();
} else {
const fileInfo = await stat(statFilePath);
if (Date.now() - fileInfo.mtime.getTime() >= 24 * 60 * 60 * 1000) {
if (Date.now() - fileInfo.mtime.getTime() >= 7 * 24 * 60 * 60 * 1000) {
await doSaveStats();
}
}