Skip to content

Commit

Permalink
feat(API): return push_sub object in GET /profile
Browse files Browse the repository at this point in the history
  • Loading branch information
olusoladavid committed Aug 16, 2018
1 parent b62289f commit f8c937a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ class userController {
entries_count: allEntries.rows.length,
fav_count: favEntries.rows.length,
created_on: user.rows[0].created_on,
push_sub: Boolean(user.rows[0].push_sub),
email_reminder: Boolean(user.rows[0].reminderisset),
push_sub: JSON.parse(user.rows[0].push_sub),
email_reminder: user.rows[0].reminderisset,
});
} catch (error) {
next(error);
Expand Down

0 comments on commit f8c937a

Please sign in to comment.