diff --git a/api/src/paths/activity.ts b/api/src/paths/activity.ts index fac51861e..8b96b1e57 100644 --- a/api/src/paths/activity.ts +++ b/api/src/paths/activity.ts @@ -381,9 +381,8 @@ function updateActivity(): RequestHandler { const data = { ...req.body, media_keys: req['media_keys'], user_role: req.authContext?.roles[0] }; - const isAdmin = (req as any).authContext.roles.find(role => role.role_id === 18) + const isAdmin = (req as any).authContext.roles.find((role) => role.role_id === 18); const sanitizedActivityData = new ActivityPostRequestBody(data); - sanitizedActivityData.created_by = req.authContext?.friendlyUsername; sanitizedActivityData.created_by_with_guid = req.authContext?.preferredUsername; sanitizedActivityData.updated_by = req.authContext?.friendlyUsername; sanitizedActivityData.updated_by_with_guid = req.authContext?.preferredUsername;