1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

fix avatar refresh on update

This commit is contained in:
Sylvain 2020-06-03 10:21:13 +02:00
parent ebe602ad1c
commit 2082f1e11c
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
# Changelog Fab-manager
- Improved display of the icons alerting about an outdated version
- Improved mime-type checking (back & front)
- Updated CarrierWave to 2.1.0
- Fix a bug: managers do not see the name of the user who reserved a slot
- [TODO DEPLOY] `rails fablab:setup:env_to_db`

View File

@ -10,7 +10,7 @@ json.profile do
if member.profile.user_avatar
json.user_avatar do
json.id member.profile.user_avatar.id
json.attachment_url member.profile.user_avatar.attachment_url
json.attachment_url "#{member.profile.user_avatar.attachment_url}?#{member.profile.user_avatar.updated_at.to_i}"
end
end
json.first_name member.profile.first_name