fix: Server crashes when receiving an array of Parse.Pointer in the request body (#8784)

This commit is contained in:
Ziv Chen
2024-01-15 17:02:57 +02:00
committed by GitHub
parent 038b7a978b
commit 66e36039d8
2 changed files with 20 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ import { logger } from '../logger';
function parseObject(obj, config) {
if (Array.isArray(obj)) {
return obj.map(item => {
return parseObject(item);
return parseObject(item, config);
});
} else if (obj && obj.__type == 'Date') {
return Object.assign(new Date(obj.iso), obj);