fix: Increased interval between Moments capturing photos

This commit is contained in:
Aman Harwara
2022-12-20 23:54:05 +05:30
parent eceb46bed7
commit e4b3028d67

View File

@@ -9,7 +9,7 @@ import { WebApplication } from '@/Application/Application'
import { dateToStringStyle1 } from '@/Utils/DateUtils'
import { PhotoRecorder } from './PhotoRecorder'
const EVERY_HALF_HOUR = 1000 * 60 * 30
const EVERY_HOUR = 1000 * 60 * 60
const EVERY_TEN_SECONDS = 1000 * 10
const DEBUG_MODE = isDev && false
@@ -68,7 +68,7 @@ export class MomentsService extends AbstractViewController {
() => {
void this.takePhoto()
},
DEBUG_MODE ? EVERY_TEN_SECONDS : EVERY_HALF_HOUR,
DEBUG_MODE ? EVERY_TEN_SECONDS : EVERY_HOUR,
)
}