Sfoglia il codice sorgente

remove bookmark model

ryuichi-e 5 anni fa
parent
commit
d350d25e99
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      src/server/routes/apiv3/bookmarks.js

+ 0 - 1
src/server/routes/apiv3/bookmarks.js

@@ -107,7 +107,6 @@ module.exports = (crowi) => {
 
 
   router.get('/users', accessTokenParser, loginRequired, csrf, apiV3FormValidator, async(req, res) => {
   router.get('/users', accessTokenParser, loginRequired, csrf, apiV3FormValidator, async(req, res) => {
     const { userId } = req.body;
     const { userId } = req.body;
-    const { Bookmark } = crowi.models;
     try {
     try {
       const bookmark = await Bookmark
       const bookmark = await Bookmark
         .find({ user: userId })
         .find({ user: userId })