fix: formatted tankopedia arrays not using promise

This commit is contained in:
TresAbhi committed 2023-07-05 17:42:14 +00:00
1 parent 423ad4e433
commit fb66027de0
5 files changed
+13 -8

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export default async function resolveTankId(tank: string) {
const number = parseInt(tank);
if (Number.isNaN(number)) {
const searchResult = go(tank, TANKS, { keys: ['name'], limit: 1 });
const searchResult = go(tank, await TANKS, { keys: ['name'], limit: 1 });
if (searchResult.length === 0) {
throw throwError(