mirror of
https://github.com/wekan/wekan.git
synced 2026-01-04 00:28:49 +01:00
Move every Users.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
This commit is contained in:
parent
81c9bb6899
commit
030359aa0e
7 changed files with 38 additions and 41 deletions
|
|
@ -147,8 +147,7 @@ class ExporterCardPDF {
|
|||
'profile.avatarUrl': 1,
|
||||
},
|
||||
};
|
||||
result.users = Users.find(byUserIds, userFields)
|
||||
.fetch()
|
||||
result.users = ReactiveCache.getUsers(byUserIds, userFields)
|
||||
.map((user) => {
|
||||
// user avatar is stored as a relative url, we export absolute
|
||||
if ((user.profile || {}).avatarUrl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue