Ignore:
Timestamp:
08/22/26 19:00:38 (8 hours ago)
Author:
veronika-ils <ilioskaveronika@…>
Branches:
master
Parents:
ae83647
Message:

feat: The app is consistent with the changes made in phase 1 and phase 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • petify-frontend/src/api/reviews.ts

    rae83647 rf6ed6e4  
    2020}
    2121
     22export type UserReviewInteractionType =
     23  | 'EVENT'
     24  | 'PERSONAL_INTERACTION'
     25  | 'ONLINE'
     26  | 'PHONE_CALL'
     27  | 'OTHER'
     28
    2229export async function createReview(
    2330  targetUserId: number,
    2431  userId: number,
    2532  rating: number,
    26   comment: string
     33  comment: string,
     34  interactionType: UserReviewInteractionType
    2735): Promise<Review> {
    2836  const url = joinUrl(getBaseUrl(), `/api/reviews/${targetUserId}`)
     
    3644      rating,
    3745      comment,
     46      interactionType,
    3847    }),
    3948  })
Note: See TracChangeset for help on using the changeset viewer.