itizawa 5 lat temu
rodzic
commit
7ae3b356ae
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/server/models/share-link.js

+ 2 - 2
src/server/models/share-link.js

@@ -34,8 +34,8 @@ class ShareLink {
 
   static async getRelatedPageByLinkId(id) {
     const shareLink = await this.find({ _id: id }).populate('relatedPage');
-    const { page } = shareLink;
-    return page;
+    const { relatedPage } = shareLink;
+    return relatedPage;
   }
 
 }