diff --git a/src/lib/db/project-store.ts b/src/lib/db/project-store.ts index bcea7cc15f..350d596996 100644 --- a/src/lib/db/project-store.ts +++ b/src/lib/db/project-store.ts @@ -51,6 +51,12 @@ class ProjectStore { return rows.map(this.mapRow); } + async updateHealth(healthUpdate: IProjectHealthUpdate): Promise { + await this.db(TABLE) + .where({ id: healthUpdate.id }) + .update({ health: healthUpdate.health }); + } + async get(id: string): Promise { return this.db .first(COLUMNS)