Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
entityNotFoundHook(ctx) {
if (!ctx.locals.entity)
return Promise.reject(new EntityNotFoundError(ctx.locals.entityID));
},