Explorar o código

Correct constant name

arvid-e hai 3 semanas
pai
achega
7054a2f983
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/app/src/server/routes/apiv3/page/update-page.ts

+ 2 - 2
apps/app/src/server/routes/apiv3/page/update-page.ts

@@ -125,13 +125,13 @@ export const updatePageHandlersFactory = (crowi: Crowi): RequestHandler[] => {
     // Decide if update activity should generate
     try {
       const targetPageId = updatedPage._id.toString();
-      const latestSupportedActivityId = res.locals.activity?._id.toString();
+      const currentActivityId = res.locals.activity?._id.toString();
       const currentUserId = req.user?._id?.toString();
 
       const shouldGenerateUpdateActivity = await shouldGenerateUpdate({
         currentUserId,
         targetPageId,
-        latestSupportedActivityId,
+        currentActivityId,
       });
 
       if (shouldGenerateUpdateActivity) {