Преглед на файлове

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)
 }