mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 23:57:32 +00:00
Return inline object
This commit is contained in:
parent
fb73cb6df5
commit
46ac677b5b
@ -24,12 +24,10 @@ module.exports = function processEvent(strapi, name, ...args) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const event = {
|
||||
return {
|
||||
action: name,
|
||||
date: new Date().toISOString(),
|
||||
payload: getPayload(...args) || {},
|
||||
userId: strapi.requestContext.get().state?.user?.id,
|
||||
};
|
||||
|
||||
return event;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user