-
Notifications
You must be signed in to change notification settings - Fork 2
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
Retrieve push devices when returning user profile #193
Conversation
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.
👍 Looks good to me.
@binh-dam-ibigroup - It's suggesting you as a reviewer, which makes no sense. Maybe you'll have better luck with a reviewer suggestion? |
Was that an AI suggestion lol? |
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.
LGTM. Maybe add a Javadoc before merge?
@@ -324,6 +325,14 @@ public static int getPushInfo(String toUser) { | |||
return 0; | |||
} | |||
|
|||
public static void updatePushDevices(OtpUser otpUser) { |
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.
Is there any expectation to add Javadoc in this project?
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 added the JavaDoc in c7b05af.
Checklist
dev
before they can be merged tomaster
)Description
This PR makes OTP-middleware retrieve the number of push devices when user info is requested. This is useful for new users that have opened the mobile app but have yet to start saving trips.