浏览代码

make available translation text to set empty string

Yevhenii Pertiaka 1 年之前
父节点
当前提交
021db14a43
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      models/translation.js

+ 2 - 1
models/translation.js

@@ -23,10 +23,11 @@ Translation.attachSchema(
        * the translation text
        */
       type: String,
+      optional: true,
     },
     createdAt: {
       /**
-       * creation date of the organization user
+       * creation date of the translation custom string
        */
       type: Date,
       // eslint-disable-next-line consistent-return