change from poll to update from hooks

This commit is contained in:
Darius
2026-02-08 14:55:54 +01:00
parent c7faa4fc0a
commit b7daaab9cf
12 changed files with 206 additions and 133 deletions

View File

@@ -1,7 +1,6 @@
import {
BaseService,
type GristRecord_PersonalGoals,
logWarning,
type ServiceResult,
} from "@dpu/shared";
import { DateTime } from "luxon";
@@ -25,14 +24,12 @@ export class GristService extends BaseService<GristClient> {
this.transformToPersonalGoals(response.records[0].fields),
);
} else {
const error_message = "error finding record from grist";
logWarning(error_message);
return this.getErrorResult(error_message);
return this.getErrorResult(
"error getting record from grist. record not found.",
);
}
} catch {
const error_message = "error getting record from grist";
logWarning(error_message);
return this.getErrorResult(error_message);
} catch (error) {
return this.getErrorResult("error getting record from grist.", error);
}
}