Skip to content

Commit

Permalink
Make entity field 'getter' to be async.
Browse files Browse the repository at this point in the history
  • Loading branch information
Misterblue committed Feb 4, 2021
1 parent d1ef185 commit 2ac1150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/route-tools/GetterSetter.ts
Expand Up @@ -40,7 +40,7 @@ export async function getEntityField(
Logger.cdebug('field-setting', `getEntityField: access passed`);
if (typeof(perms.getter) === 'function') {
Logger.cdebug('field-setting', `getEntityField: doing getter`);
val = perms.getter(perms, pEntity);
val = await perms.getter(perms, pEntity);
Logger.cdebug('field-setting', `getEntityField: ${pField}=>${JSON.stringify(val)}`);
}
else {
Expand Down

0 comments on commit 2ac1150

Please sign in to comment.