parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.7k stars 4.76k forks source link

Object data type change from beforeSave to afterSave hook trigger #9176

Closed mkmandar123 closed 1 week ago

mkmandar123 commented 1 week ago

New Issue Checklist

Issue Description

Object field data type changes from json to array during beforeSave and afterSave hook triggers.

Steps to reproduce

https://github.com/parse-community/parse-server/pull/9177

Actual Outcome

data type of the field value is not same in beforeSave and afterSave hook. It changes from json object to array.

Expected Outcome

data type of the field value should remain same in beforeSave and afterSave hook.

Environment

ParseServer: 7.1.0 (7.0.0 no issue observed)

Server

parse-github-assistant[bot] commented 1 week ago

Thanks for opening this issue!

mtrezza commented 1 week ago

I believe this is a duplicate of https://github.com/parse-community/Parse-SDK-JS/issues/2198?

mtrezza commented 1 week ago

Test added in https://github.com/parse-community/parse-server/pull/9177 Fixed via https://github.com/parse-community/parse-server/pull/9180 Related tests in https://github.com/parse-community/parse-server/pull/9179

parseplatformorg commented 1 week ago

🎉 This change has been released in version 7.2.0-beta.1

parseplatformorg commented 6 days ago

🎉 This change has been released in version 7.2.0