mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-20 19:51:09 +10:00
@ -82,6 +82,10 @@ export class MetadataHandler {
|
||||
// TODO: fix eslint error
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
>(async (resolve, reject) => {
|
||||
setTimeout(
|
||||
() => reject(new Error("Timeout while fetching results")),
|
||||
systemConfig.getMetadataTimeout(),
|
||||
);
|
||||
try {
|
||||
const results = await provider.search(query);
|
||||
const mappedResults: InternalGameMetadataResult[] = results.map(
|
||||
|
||||
Reference in New Issue
Block a user