浏览代码

query-node: set attribution field when provided

metmirr 4 年之前
父节点
当前提交
1f2f7b55a5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      query-node/mappings/content-directory/entity/update.ts

+ 2 - 0
query-node/mappings/content-directory/entity/update.ts

@@ -98,6 +98,8 @@ async function updateLicenseEntityPropertyValues(
     // Set the license type
     record.type = u
   }
+
+  record.attribution = props.attribution || record.attribution
   await db.save<LicenseEntity>(record)
 }