generated from pascalmartineau/wp-skeleton
refactor: rename userSwitchTo
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m6s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m6s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user