@xenterprises/fastify-xconfig 0.0.6 → 0.0.7

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@xenterprises/fastify-xconfig",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "description": "Fastify configuration plugin for setting up middleware, services, and route handling.",
6
6
  "main": "src/xConfig.js",
7
7
  "scripts": {
@@ -266,7 +266,7 @@ export async function setupAuth(fastify, options) {
266
266
  // Fetch user details from database
267
267
  const user = await fastify.prisma.users.findUnique({
268
268
  where: { id: userAuth.id },
269
- select: { id: true, email: true, firstName: true, lastName: true, ...userAuthOptions.user.me },
269
+ select: { id: true, email: true, firstName: true, lastName: true, ...userAuthOptions.me },
270
270
  });
271
271
 
272
272
  if (!user) {