diff --git a/backend/sql/json.ts b/backend/sql/json.ts index f7379b2..4086a75 100644 --- a/backend/sql/json.ts +++ b/backend/sql/json.ts @@ -143,6 +143,7 @@ export class JSONDatabase implements Database { }); } + // todo: fix this public getAll(table: DatabaseTable): Promise<{ Data: DatabaseValue | undefined }[]> { return new Promise(async (resolve, reject) => { const data = (await fs.readJson(PATHMAP[table]))[SECTORMAP[table]]; diff --git a/backend/sql/postgres.ts b/backend/sql/postgres.ts index 1e38177..6b4280c 100644 --- a/backend/sql/postgres.ts +++ b/backend/sql/postgres.ts @@ -180,6 +180,7 @@ export class PostgreSQLDatabase implements Database { }); } + // todo: verify this works public getAll(table: DatabaseTable): Promise<{ Data: DatabaseValue | undefined }[]> { return new Promise(async (resolve, reject) => { try {