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,4 +1,4 @@
import type { LoginRootMutation, UserSwitchToRootMutation } from "#graphql-operations";
import type { LoginRootMutation, SwitchToRootMutation } from "#graphql-operations";
import type { H3Event } from "h3";
import { pick } from "es-toolkit/compat";
@@ -25,7 +25,7 @@ export async function handleLogout(event: H3Event) {
await clearUserSession(event);
}
export async function handleSwitchTo(event: H3Event, data?: UserSwitchToRootMutation) {
export async function handleSwitchTo(event: H3Event, data?: SwitchToRootMutation) {
if (!data?.userSwitchTo?.user) {
return;
}