From 3c5e20e18edf9a495eede7a124498f394750b88d Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Tue, 6 Jun 2023 13:50:10 +0200 Subject: [PATCH] fix: Fixed type --- webv2/middleware/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webv2/middleware/auth.ts b/webv2/middleware/auth.ts index b9580c5..dad1fab 100644 --- a/webv2/middleware/auth.ts +++ b/webv2/middleware/auth.ts @@ -4,7 +4,7 @@ export default defineNuxtRouteMiddleware(async (to) => { } try { - const user: IUser = await $fetch('/api/users/@me') + const user = await $fetch('/api/users/@me') as IUser if (!user._id) { throw createError({ statusCode: 500, statusMessage: 'No user was found' })