From 5a44e2acce2454b00d6625cae37201836229064c Mon Sep 17 00:00:00 2001 From: joostdecock Date: Sun, 13 Aug 2023 10:42:46 +0200 Subject: [PATCH] fix(backend): Also split calls in output --- sites/backend/src/models/user.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sites/backend/src/models/user.mjs b/sites/backend/src/models/user.mjs index 7394d329a50..fafb00d0ce3 100644 --- a/sites/backend/src/models/user.mjs +++ b/sites/backend/src/models/user.mjs @@ -1089,7 +1089,6 @@ UserModel.prototype.asAccount = function () { return { id: this.record.id, bio: this.clear.bio, - calls: this.record.calls, compare: this.record.compare, consent: this.record.consent, control: this.record.control, @@ -1100,6 +1099,8 @@ UserModel.prototype.asAccount = function () { img: this.clear.img, imperial: this.record.imperial, initial: this.clear.initial, + jwtCalls: this.record.jwtCalls, + keyCalls: this.record.keyCalls, language: this.record.language, lastSeen: this.record.lastSeen, mfaEnabled: this.record.mfaEnabled,