File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export const ERROR_CODES = {
66 INFRA : 'INFRA_ERROR' ,
77 GUARD : 'GUARD_ERROR' ,
88 EMAIL_VALIDATION : 'EMAIL_VALIDATION_ERROR' ,
9+ SUPABASE : 'SUPABASE_ERROR' ,
910} as const
1011
1112export const INFO_CODES = {
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import { z } from 'zod'
66import { TeamMemberInfo } from './types'
77import { authActionClient } from '@/lib/clients/action'
88import { returnServerError } from '@/lib/utils/action'
9+ import { logError } from '@/lib/clients/logger'
10+ import { ERROR_CODES } from '@/configs/logs'
911
1012const GetTeamMembersSchema = z . object ( {
1113 teamId : z . string ( ) . uuid ( ) ,
@@ -26,6 +28,8 @@ export const getTeamMembers = authActionClient
2628 . single ( )
2729
2830 if ( userTeamsRelationError ) {
31+ logError ( ERROR_CODES . SUPABASE , userTeamsRelationError )
32+
2933 return returnServerError ( 'User is not authorized to get team members' )
3034 }
3135
You can’t perform that action at this time.
0 commit comments