add grist record to fullinfo
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { AxiosInstance } from "axios";
|
||||
import { logWarning } from "./logger";
|
||||
|
||||
export type ServiceResult<T = unknown> = {
|
||||
result: T;
|
||||
@@ -40,6 +41,7 @@ export abstract class BaseService<T> {
|
||||
}
|
||||
|
||||
getErrorResult(error: string): ServiceResult<string> {
|
||||
logWarning(error);
|
||||
return {
|
||||
result: error,
|
||||
successful: false,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import type { GristRecord_PersonalGoals } from "./grist";
|
||||
import type { API_HA_DeskPosition } from "./homeassistant";
|
||||
import type { TidalGetCurrent } from "./tidal";
|
||||
|
||||
@@ -5,4 +6,5 @@ export type FullInformation = {
|
||||
ha_desk_position: API_HA_DeskPosition | null;
|
||||
ha_temp: string | null;
|
||||
tidal_current: TidalGetCurrent | null;
|
||||
grist_personal_goals: GristRecord_PersonalGoals | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user