This commit is contained in:
TheGiddyLimit
2024-07-19 17:04:07 +01:00
parent 1e72254fcb
commit c330614db9
27 changed files with 1495 additions and 137 deletions

View File

@@ -1987,7 +1987,7 @@ class DataLoader {
}
static async pCacheAndGetHash (page, hash, opts) {
const {source} = UrlUtil.autoDecodeHash(hash, {page});
const {source} = await UrlUtil.pAutoDecodeHash(hash, {page});
if (!source) {
if (opts.isRequired) throw new Error(`Could not find entity for page "${page}" with hash "${hash}"`);
return null;