refactor: rename userSwitchTo
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m6s

This commit is contained in:
2025-09-18 11:50:02 -04:00
parent 3cc4b570d5
commit 4e9ad82d96
9 changed files with 72 additions and 66 deletions

View File

@@ -1,6 +1,6 @@
import { defineGraphqlServerOptions } from "nuxt-graphql-middleware/server-options";
import { jwtDecode } from "jwt-decode";
import type { LoginRootMutation, UserSwitchToRootMutation } from "#graphql-operations";
import type { LoginRootMutation, SwitchToRootMutation } from "#graphql-operations";
interface DecodedToken {
exp: number;
@@ -37,8 +37,8 @@ export default defineGraphqlServerOptions({
case "login":
await handleLogin(event, response._data!.data as LoginRootMutation);
break;
case "userSwitchTo":
await handleSwitchTo(event, response._data!.data as UserSwitchToRootMutation);
case "switchTo":
await handleSwitchTo(event, response._data!.data as SwitchToRootMutation);
break;
}
return response._data!;