Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37914 7 d 14 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ fix(web): todayOffers returns empty list when request has no user token

userInfo is only set by AuthenticationInterceptor for a real JWT; requests
with no Auth-Token or a static token NPE'd. Treat them as no store.
 
37884 14 d 3 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ fix(web): todayOffers for staff users; stop logging full Auth-Token

- /todayOffers (GlitchTip #59, 417 events): resolved the store via
dtr.user_accounts, which internal staff using the partner app don't have, so
getUserCart returned null and the call NPE'd. Use the retailerId from the
token (same value as the partner's saholic account); return an empty list
when the token carries no store.
- AuthenticationInterceptor: log only the last 6 characters of the
Auth-Token instead of the full JWT (was reaching GlitchTip breadcrumbs).
 
35727 258 d 2 h vikas /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ Pinelabs Offers fetching item wise and caching and today offers api