2
0
Эх сурвалжийг харах

- Remove broken customFields references.

Thanks to Clement87 and Akuket !
Lauri Ojansivu 6 жил өмнө
parent
commit
00eeb86332

+ 8 - 0
server/migrations.js

@@ -342,3 +342,11 @@ Migrations.add('remove-tag', () => {
     },
     },
   }, noValidateMulti);
   }, noValidateMulti);
 });
 });
+
+Migrations.add('remove-customFields-references-broken', () => {
+  Cards.update(
+    {'customFields.$value': null},
+    {$pull: {customFields: {value: null}}},
+    noValidateMulti,
+  );
+});