Skip to content

Commit 474235f

Browse files
Update post-api.service.ts
1 parent 582654d commit 474235f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/service/backend-api/post/post-api.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class PostApiService {
3838
const lastBackupStr = this.userService.getValue<string>('last_backup');
3939
const now = new Date();
4040
const lastBackup = lastBackupStr ? new Date(lastBackupStr) : null;
41-
const shouldBackup = !lastBackup || (now.getTime() - lastBackup.getTime()) > 24 * 60 * 60 * 1000;
41+
const shouldBackup = !lastBackup || (now.getTime() - lastBackup.getTime()) > 4 * 60 * 60 * 1000;
4242

4343
if (shouldBackup) {
4444
// console.log('Posting user data in the background...');

0 commit comments

Comments
 (0)