yusuketk 7 лет назад
Родитель
Сommit
e6baf2a184
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/server/models/tag.js

+ 2 - 0
src/server/models/tag.js

@@ -21,6 +21,7 @@ schema.plugin(mongoosePaginate);
  * @class Tag
  * @class Tag
  */
  */
 class Tag {
 class Tag {
+
   static async findOrCreate(tagName) {
   static async findOrCreate(tagName) {
     const tag = await this.findOne({ name: tagName });
     const tag = await this.findOne({ name: tagName });
     if (!tag) {
     if (!tag) {
@@ -28,6 +29,7 @@ class Tag {
     }
     }
     return tag;
     return tag;
   }
   }
+
 }
 }
 
 
 module.exports = function() {
 module.exports = function() {