fix(middleware): revert now variable back (#2267)

This commit is contained in:
Junyi 2023-07-19 09:16:03 +07:00 committed by GitHub
parent d36b9e366a
commit b3e34d7f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,9 @@ export const parseVariables = async (ctx, next) => {
return ctx.db.getFieldByPath(`${resourceName}.${fieldPath}`);
},
vars: {
$system: {
now: new Date().toISOString(),
},
$date: getDateVars(),
$user: getUser(ctx),
},