Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ACCESS_TOKEN_EXPIRED": "Session expired. Please login again.",
"ACCESS_TOKEN_GENERATED_SUCCESSFULLY": "Access token generated successfully",
"INVALID_REFRESH_TOKEN": "Invalid refresh token",
"REFRESH_TOKEN_NOT_FOUND": "Refresh token not found",
"REFRESH_TOKEN_NOT_FOUND": "Oops! Your session has expired. Please log in again.",
"PROFILE_UPDATED_SUCCESSFULLY": "Profile updated successfully.",
"PROFILE_FETCHED_SUCCESSFULLY": "Profile fetched successfully.",
"FORM_ALREADY_EXISTS": "Form already exists",
Expand Down
4 changes: 4 additions & 0 deletions src/services/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@ module.exports = class AccountHelper {
const prunedEntities = removeDefaultOrgEntityTypes(validationData, user.organization_id)
user = utils.processDbResponse(user, prunedEntities)

if (user && user.image) {
user.image = await utils.getDownloadableUrl(user.image)
}

const result = { access_token: accessToken, refresh_token: refreshToken, user }

return common.successResponse({
Expand Down