update for partial polling, add grist

This commit is contained in:
Darius
2026-02-06 21:28:48 +01:00
parent d1d0ff55a5
commit 8948470baa
3 changed files with 180 additions and 57 deletions

View File

@@ -35,13 +35,13 @@ export class GristService extends BaseService<GristClient> {
}
}
getTodayAsId(date = new Date()) {
private getTodayAsId(date = new Date()) {
const start = new Date(date.getFullYear(), 0, 0);
const diff = date.getTime() - start.getTime();
return Math.floor(diff / 86400000);
}
transformToPersonalGoals(
private transformToPersonalGoals(
obj: Record<string, unknown>,
): GristRecord_PersonalGoals {
return {