Skip to content

Conversation

@jonrxu
Copy link
Contributor

@jonrxu jonrxu commented Oct 13, 2024

Add frontend API methods and interfaces for subletting.

@codecov
Copy link

codecov bot commented Oct 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.37%. Comparing base (ef44d80) to head (328ad1f).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #312      +/-   ##
==========================================
- Coverage   90.41%   90.37%   -0.04%     
==========================================
  Files          62       62              
  Lines        2681     2681              
==========================================
- Hits         2424     2423       -1     
- Misses        257      258       +1     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jonrxu jonrxu requested a review from vcai122 October 13, 2024 20:50
export const createOffer = async (
subletId: string,
data: CreateOfferRequest
): Promise<void> => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably the response shouldn't be void? We should return the response so we can check it and maybe display an error or sucess message based off of it.

In general is it nescecary to throw after each call (i have no preference here but just wondering). Why not just return the response and have the caller inspect it? It seems natural that for most responses we might want to handle the happy case and the bad case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants