several changes
This commit is contained in:
@@ -114,7 +114,7 @@ export const setUserMetadata = createServerFn({ method: 'POST' })
|
||||
}).partial())
|
||||
.middleware([superTokensFunctionMiddleware])
|
||||
.handler(async ({ context, data }) => {
|
||||
const { userAuthId, metadata } = context as any;
|
||||
const { userAuthId, metadata } = context;
|
||||
if (!userAuthId) return;
|
||||
|
||||
await UserMetadata.updateUserMetadata(userAuthId, {
|
||||
@@ -135,7 +135,7 @@ export const updateUserColorScheme = createServerFn({ method: 'POST' })
|
||||
.validator((data: string) => data)
|
||||
.middleware([superTokensFunctionMiddleware])
|
||||
.handler(async ({ context, data }) => {
|
||||
const { userAuthId, metadata } = context as any;
|
||||
const { userAuthId, metadata } = context;
|
||||
if (!userAuthId) return;
|
||||
|
||||
await UserMetadata.updateUserMetadata(userAuthId, {
|
||||
@@ -154,7 +154,7 @@ export const updateUserAccentColor = createServerFn({ method: 'POST' })
|
||||
.validator((data: string) => data)
|
||||
.middleware([superTokensFunctionMiddleware])
|
||||
.handler(async ({ context, data }) => {
|
||||
const { userAuthId, metadata } = context as any;
|
||||
const { userAuthId, metadata } = context;
|
||||
if (!userAuthId) return;
|
||||
|
||||
await UserMetadata.updateUserMetadata(userAuthId, {
|
||||
|
||||
Reference in New Issue
Block a user