Hi Forest,
I used to override a route to delete an object. That has been working perfectly until now.
However, I never enter anymore in the handleDeleteSubscriptionPromotionCode
handler to override the request.
Expected behavior
Override the request
Actual behavior
The request directly delete the object without being overrided
Failure Logs
api_forest_1 | info: β OPTIONS /forest/subscriptionPromotionCode?timezone=Europe%2FLondon 204 0ms +15s
api_forest_1 | info: β [ 1] {
api_forest_1 | info: β [ 2] http: {
api_forest_1 | info: β [ 3] request: {
api_forest_1 | info: β [ 4] method: 'OPTIONS',
api_forest_1 | info: β [ 5] url: 'http://api-forest.dev.localhost/forest/subscriptionPromotionCode?timezone=Europe%2FLondon',
api_forest_1 | info: β [ 6] path: '/forest/subscriptionPromotionCode',
api_forest_1 | info: β [ 7] query: { timezone: 'Europe/London' },
api_forest_1 | info: β [ 8] headers: {},
api_forest_1 | info: β [ 9] source_ip: '172.23.0.1'
api_forest_1 | info: β [10] },
api_forest_1 | info: β [11] responseTime: 0,
api_forest_1 | info: β [12] response: { status: 204, message: 'No Content', type: undefined, headers: {} }
api_forest_1 | info: β [13] },
api_forest_1 | info: β [14] service: 'api_forest',
api_forest_1 | info: β [15] env: 'development',
api_forest_1 | info: β [16] version: 'v2.0.3',
api_forest_1 | info: β [17] context: { message: 'OPTIONS /forest/subscriptionPromotionCode?timezone=Europe%2FLondon 204 0ms' },
api_forest_1 | info: β [18] timestamp: '2021-06-14T11:28:20.089Z'
api_forest_1 | info: β [19] }
api_forest_1 | debug: β mongo query +13ms
api_forest_1 | debug: β [ 1] {
api_forest_1 | debug: β [ 2] service: 'api_forest',
api_forest_1 | debug: β [ 3] env: 'development',
api_forest_1 | debug: β [ 4] version: 'v2.0.3',
api_forest_1 | debug: β [ 5] context: {
api_forest_1 | debug: β [ 6] collection: 'subscriptionPromotionCode',
api_forest_1 | debug: β [ 7] method: 'deleteMany',
api_forest_1 | debug: β [ 8] 'query._id.$in': [ 60c73d3d3792be14b27360d8 ],
api_forest_1 | debug: β [ 9] doc: {},
api_forest_1 | debug: β [10] options: undefined,
api_forest_1 | debug: β [11] message: 'mongo query'
api_forest_1 | debug: β [12] },
api_forest_1 | debug: β [13] timestamp: '2021-06-14T11:28:20.103Z'
api_forest_1 | debug: β [14] }
api_forest_1 | info: β DELETE /forest/subscriptionPromotionCode?timezone=Europe%2FLondon 204 15ms +4ms
api_forest_1 | info: β [ 1] {
api_forest_1 | info: β [ 2] http: {
api_forest_1 | info: β [ 3] request: {
api_forest_1 | info: β [ 4] method: 'DELETE',
api_forest_1 | info: β [ 5] url: 'http://api-forest.dev.localhost/forest/subscriptionPromotionCode?timezone=Europe%2FLondon',
api_forest_1 | info: β [ 6] path: '/forest/subscriptionPromotionCode',
api_forest_1 | info: β [ 7] query: { timezone: 'Europe/London' },
api_forest_1 | info: β [ 8] headers: {},
api_forest_1 | info: β [ 9] source_ip: '172.23.0.1'
api_forest_1 | info: β [10] },
api_forest_1 | info: β [11] responseTime: 15,
api_forest_1 | info: β [12] response: { status: 204, message: 'No Content', type: undefined, headers: {} }
api_forest_1 | info: β [13] },
api_forest_1 | info: β [14] service: 'api_forest',
api_forest_1 | info: β [15] env: 'development',
api_forest_1 | info: β [16] version: 'v2.0.3',
api_forest_1 | info: β [17] context: { message: 'DELETE /forest/subscriptionPromotionCode?timezone=Europe%2FLondon 204 15ms' },
api_forest_1 | info: β [18] timestamp: '2021-06-14T11:28:20.111Z'
api_forest_1 | info: β [19] }
Context
Has anything changed with overriding behaviour ?
Best
Guillaume