Skip to content

Commit

Permalink
trying to fix build error in transformResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
zavarin-michael committed Aug 23, 2024
1 parent c0fd3ff commit 49089ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/schools/domains/organization/redux/organizationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const organizationApi = commonApi.injectEndpoints({
}),
transformResponse: (response: ReturnedData<GetStudent[]>) => {
return mapReturnedData(response, (query) => {
const transformedQuery = structuredClone(query)
const transformedQuery = structuredClone(query) as unknown as TableTypeStudent
transformedQuery.id = query.id
transformedQuery.student_name = query.name
transformedQuery.student_phone = query.student_profile.phone
Expand Down Expand Up @@ -182,7 +182,7 @@ const organizationApi = commonApi.injectEndpoints({
}),
transformResponse: (response: ReturnedData<GetCircleInviteStudent[]>) => {
return mapReturnedData(response, (query) => {
const transformedQuery = structuredClone(query)
const transformedQuery = structuredClone(query) as unknown as TableTypeStudent
transformedQuery.id = query.body.id || ''
transformedQuery.student_name = query.body.name
transformedQuery.student_phone = query.additional.phone
Expand Down

0 comments on commit 49089ff

Please sign in to comment.