bulltrackers-module 1.0.173 → 1.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -245,7 +245,15 @@ async function commitResults(stateObj, dStr, passName, config, deps) {
|
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
if (calc.manifest.class.getSchema) {
|
|
248
|
-
|
|
248
|
+
// FIX: Remove the 'class' property (function) because Firestore cannot store it. (We were literally submitting the entire JS class to firestore...)
|
|
249
|
+
const { class: _cls, ...safeMetadata } = calc.manifest;
|
|
250
|
+
|
|
251
|
+
schemas.push({
|
|
252
|
+
name,
|
|
253
|
+
category: calc.manifest.category,
|
|
254
|
+
schema: calc.manifest.class.getSchema(),
|
|
255
|
+
metadata: safeMetadata
|
|
256
|
+
});
|
|
249
257
|
}
|
|
250
258
|
} catch (e) { deps.logger.log('ERROR', `Commit failed ${name}: ${e.message}`); }
|
|
251
259
|
}
|