allows for disableErrors to be passed through local findByID

This commit is contained in:
James
2020-10-12 13:24:28 -04:00
parent 6b932168ce
commit bb4dce09df

View File

@@ -7,6 +7,7 @@ async function findByID(options) {
fallbackLocale,
user,
overrideAccess = true,
disableErrors = false,
} = options;
const collection = this.collections[collectionSlug];
@@ -16,6 +17,7 @@ async function findByID(options) {
id,
collection,
overrideAccess,
disableErrors,
req: {
user,
payloadAPI: 'local',