fix: this should be `resolve(false)`

pull/243/head
Josh Moore 1 year ago
parent c274e0722b
commit ac1a51ec16

@ -173,7 +173,7 @@ export const get = (sector: DataSector, key: NID): Promise<AssFile | AssUser | f
const data: AssFile | AssUser | undefined = (MySql.ready)
? (await MySql.get(sector === 'files' ? 'assfiles' : 'assusers', key) as AssFile | AssUser | undefined)
: (await fs.readJson(PATHS[sector]))[sector][key];
(!data) ? reject(false) : resolve(data);
(!data) ? resolve(false) : resolve(data);
} catch (err) {
reject(err);
}

Loading…
Cancel
Save