mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.205.0
This commit is contained in:
@@ -1886,7 +1886,7 @@ class DataLoader {
|
||||
*/
|
||||
static async pCacheAndGet (page, source, hash, {isCopy = false, isRequired = false, isSilent = false, lockToken2} = {}) {
|
||||
const fromCache = this.getFromCache(page, source, hash, {isCopy, _isReturnSentinel: true});
|
||||
if (fromCache === _DataLoaderConst.ENTITY_NULL) return null;
|
||||
if (fromCache === _DataLoaderConst.ENTITY_NULL) return this._getVerifiedRequiredEntity({pageClean: page, sourceClean: source, hashClean: hash, ent: null, isRequired});
|
||||
if (fromCache) return fromCache;
|
||||
|
||||
const {page: pageClean, source: sourceClean, hash: hashClean} = _DataLoaderInternalUtil.getCleanPageSourceHash({page, source, hash});
|
||||
|
||||
Reference in New Issue
Block a user