arvid-e 3 недель назад
Родитель
Сommit
7054a2f983
1 измененных файлов с 2 добавлено и 2 удалено
  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) {