fix(middleware): revert now variable back (#2267)
This commit is contained in:
parent
d36b9e366a
commit
b3e34d7f92
@ -44,6 +44,9 @@ export const parseVariables = async (ctx, next) => {
|
|||||||
return ctx.db.getFieldByPath(`${resourceName}.${fieldPath}`);
|
return ctx.db.getFieldByPath(`${resourceName}.${fieldPath}`);
|
||||||
},
|
},
|
||||||
vars: {
|
vars: {
|
||||||
|
$system: {
|
||||||
|
now: new Date().toISOString(),
|
||||||
|
},
|
||||||
$date: getDateVars(),
|
$date: getDateVars(),
|
||||||
$user: getUser(ctx),
|
$user: getUser(ctx),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user