Shun Miyazawa 4 лет назад
Родитель
Сommit
8d8970dd39

+ 3 - 3
packages/app/src/client/services/PageContainer.js

@@ -121,7 +121,7 @@ export default class PageContainer extends Container {
       this.retrieveSeenUsers();
       this.retrieveSeenUsers();
       this.retrieveLikeInfo();
       this.retrieveLikeInfo();
       this.retrieveBookmarkInfo();
       this.retrieveBookmarkInfo();
-      this.retrieveSubscribeStatus();
+      this.retrieveSubscriptionStatus();
     }
     }
 
 
     this.setTocHtml = this.setTocHtml.bind(this);
     this.setTocHtml = this.setTocHtml.bind(this);
@@ -305,7 +305,7 @@ export default class PageContainer extends Container {
     return this.retrieveBookmarkInfo();
     return this.retrieveBookmarkInfo();
   }
   }
 
 
-  async retrieveSubscribeStatus() {
+  async retrieveSubscriptionStatus() {
     const res = await this.appContainer.apiv3Get('/page/subscribe/status', { pageId: this.state.pageId });
     const res = await this.appContainer.apiv3Get('/page/subscribe/status', { pageId: this.state.pageId });
     this.setState({ isSubscribing: res.data.subscribing });
     this.setState({ isSubscribing: res.data.subscribing });
   }
   }
@@ -313,7 +313,7 @@ export default class PageContainer extends Container {
   async toggleSubscribe() {
   async toggleSubscribe() {
     const bool = !this.state.isSubscribing;
     const bool = !this.state.isSubscribing;
     await this.appContainer.apiv3Put('page/subscribe', { pageId: this.state.pageId, status: bool });
     await this.appContainer.apiv3Put('page/subscribe', { pageId: this.state.pageId, status: bool });
-    return this.retrieveSubscribeStatus();
+    return this.retrieveSubscriptionStatus();
   }
   }
 
 
   async checkAndUpdateImageUrlCached(users) {
   async checkAndUpdateImageUrlCached(users) {

+ 7 - 7
packages/app/src/server/routes/apiv3/page.js

@@ -485,8 +485,8 @@ module.exports = (crowi) => {
    *      put:
    *      put:
    *        tags: [Page]
    *        tags: [Page]
    *        summary: /page/subscribe
    *        summary: /page/subscribe
-   *        description: Update subscribe status
-   *        operationId: updateSubscribeStatus
+   *        description: Update subscription status
+   *        operationId: updateSubscriptionStatus
    *        requestBody:
    *        requestBody:
    *          content:
    *          content:
    *            application/json:
    *            application/json:
@@ -496,7 +496,7 @@ module.exports = (crowi) => {
    *                    $ref: '#/components/schemas/Page/properties/_id'
    *                    $ref: '#/components/schemas/Page/properties/_id'
    *        responses:
    *        responses:
    *          200:
    *          200:
-   *            description: Succeeded to update subscribe status.
+   *            description: Succeeded to update subscription status.
    *            content:
    *            content:
    *              application/json:
    *              application/json:
    *                schema:
    *                schema:
@@ -524,9 +524,9 @@ module.exports = (crowi) => {
    *    /page/subscribe/status:
    *    /page/subscribe/status:
    *      get:
    *      get:
    *        tags: [Page]
    *        tags: [Page]
-   *        summary: /page/subscribe
-   *        description: get subscribe status
-   *        operationId: getSubscribeStatus
+   *        summary: /page/subscribe/status
+   *        description: Get subscription status
+   *        operationId: getSubscriptionStatus
    *        requestBody:
    *        requestBody:
    *          content:
    *          content:
    *            application/json:
    *            application/json:
@@ -536,7 +536,7 @@ module.exports = (crowi) => {
    *                    $ref: '#/components/schemas/Page/properties/_id'
    *                    $ref: '#/components/schemas/Page/properties/_id'
    *        responses:
    *        responses:
    *          200:
    *          200:
-   *            description: Succeeded to get subscribe status.
+   *            description: Succeeded to get subscription status.
    *            content:
    *            content:
    *              application/json:
    *              application/json:
    *                schema:
    *                schema: