@athenna/http 5.41.0 → 5.42.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/http",
3
- "version": "5.41.0",
3
+ "version": "5.42.0",
4
4
  "description": "The Athenna Http server. Built on top of fastify.",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -206,7 +206,10 @@ export class ServerImpl extends Macroable {
206
206
  }
207
207
  if (options.data && Is.Array(route.preHandler)) {
208
208
  route.preHandler?.unshift((req, _, done) => {
209
- req.data = options.data;
209
+ req.data = {
210
+ ...options.data,
211
+ ...req.data
212
+ };
210
213
  done();
211
214
  });
212
215
  }