-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add GET /connect/session endpoint #2776
Conversation
74a3350
to
6fabe59
Compare
if (session.isErr()) { | ||
return Err(session.error); | ||
} | ||
return Ok(session.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can't return session directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant this:
return Ok(session.value); | |
return session |
instead of the current if err ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok yes. you are right. the unwrapping/wrapping is unnecessary. I will fix next time I touch the code
d8b2789
to
e96c39b
Compare
f44b70b
to
8d8db83
Compare
8d8db83
to
c243733
Compare
e96c39b
to
79808f9
Compare
Describe your changes
depends on #2769
Issue ticket number and link
https://linear.app/nango/issue/NAN-1775/[server]-api-endpoints-to-getpost-sessions