@trullock/firebase-common 1.1.0 → 1.1.1
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.
- package/package.json +1 -1
- package/src/automapper.js +2 -2
package/package.json
CHANGED
package/src/automapper.js
CHANGED
|
@@ -210,10 +210,10 @@ export function autoMapFromFirestore(obj)
|
|
|
210
210
|
|
|
211
211
|
for(let migration of migrations)
|
|
212
212
|
{
|
|
213
|
-
if(!migration.shouldApply(key, obj, value, dest, mapping
|
|
213
|
+
if(!migration.shouldApply(key, obj, value, dest, mapping?.type))
|
|
214
214
|
continue;
|
|
215
215
|
|
|
216
|
-
value = migration.apply(key, obj, value, dest, mapping
|
|
216
|
+
value = migration.apply(key, obj, value, dest, mapping?.type);
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
let handled = false;
|