itizawa hace 5 años
padre
commit
8e1ab4a55f
Se han modificado 1 ficheros con 0 adiciones y 17 borrados
  1. 0 17
      src/server/models/share-link.js

+ 0 - 17
src/server/models/share-link.js

@@ -25,24 +25,7 @@ const schema = new mongoose.Schema({
 
 schema.plugin(uniqueValidator);
 
-/**
- * shareLink Class
- *
- * @class ShareLink
- */
-class ShareLink {
-
-  static async getRelatedPageByLinkId(id) {
-    const shareLink = await this.find({ _id: id }).populate('relatedPage');
-    const { relatedPage } = shareLink;
-    return relatedPage;
-  }
-
-}
-
 module.exports = function(crowi) {
-  ShareLink.crowi = crowi;
-  schema.loadClass(ShareLink);
   const model = mongoose.model('ShareLink', schema);
   return model;
 };