pull/249/head
Sylvie 6 months ago
parent 0abf3a2188
commit 495bbcf1db
No known key found for this signature in database
GPG Key ID: 75AB0FE5B983A3AF

@ -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]];

@ -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 {

Loading…
Cancel
Save