ソースを参照

fix variable miss

zamis 5 年 前
コミット
f8b9222429

+ 1 - 1
src/client/js/components/EmptyTrashModal.jsx

@@ -23,7 +23,7 @@ const EmptyTrashModal = (props) => {
     setErrs(null);
     setErrs(null);
 
 
     try {
     try {
-      await appContainer.apiv3Delete('/pages/empty-trash', { socketclientId: socketIoContainer.getSocketClientId() });
+      await appContainer.apiv3Delete('/pages/empty-trash', { socketClientId: socketIoContainer.getSocketClientId() });
       window.location.reload();
       window.location.reload();
     }
     }
     catch (err) {
     catch (err) {

+ 1 - 1
src/server/routes/apiv3/pages.js

@@ -436,7 +436,7 @@ module.exports = (crowi) => {
    *            description: Succeeded to remove all trash pages
    *            description: Succeeded to remove all trash pages
    */
    */
   router.delete('/empty-trash', loginRequired, adminRequired, csrf, async(req, res) => {
   router.delete('/empty-trash', loginRequired, adminRequired, csrf, async(req, res) => {
-    const socketClientId = req.query.socketclientId;
+    const socketClientId = req.query.socketClientId;
     const options = { socketClientId };
     const options = { socketClientId };
 
 
     try {
     try {