change from poll to update from hooks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user