feat: Upgrade to express 5.0.1 (#9530)
BREAKING CHANGE: This upgrades the internally used Express framework from version 4 to 5, which may be a breaking change. If Parse Server is set up to be mounted on an Express application, we recommend to also use version 5 of the Express framework to avoid any compatibility issues. Note that even if there are no issues after upgrading, future releases of Parse Server may introduce issues if Parse Server internally relies on Express 5-specific features which are unsupported by the Express version on which it is mounted. See the Express [migration guide](https://expressjs.com/en/guide/migrating-5.html) and [release announcement](https://expressjs.com/2024/10/15/v5-release.html#breaking-changes) for more info.
This commit is contained in:
@@ -5,7 +5,7 @@ export class AnalyticsController extends AdaptableController {
|
||||
appOpened(req) {
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
return this.adapter.appOpened(req.body, req);
|
||||
return this.adapter.appOpened(req.body || {}, req);
|
||||
})
|
||||
.then(response => {
|
||||
return { response: response || {} };
|
||||
@@ -18,7 +18,7 @@ export class AnalyticsController extends AdaptableController {
|
||||
trackEvent(req) {
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
return this.adapter.trackEvent(req.params.eventName, req.body, req);
|
||||
return this.adapter.trackEvent(req.params.eventName, req.body || {}, req);
|
||||
})
|
||||
.then(response => {
|
||||
return { response: response || {} };
|
||||
|
||||
Reference in New Issue
Block a user