FIX: User profiles didn't work when API keys exist
This commit is contained in:
parent
dc5fddbfe6
commit
209ed105f9
|
@ -189,7 +189,7 @@ class UserSerializer < BasicUserSerializer
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
keys.sort! { |a, b| a.last_used_at.to_time > b.last_used_at.to_time }
|
keys.sort! { |a, b| a[:last_used_at].to_time > b[:last_used_at].to_time }
|
||||||
keys.length > 0 ? keys : nil
|
keys.length > 0 ? keys : nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue