mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 01:10:12 +01:00
Move every Users.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
2c92524cf4
commit
ad9daba60d
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ import Team from '/models/team';
|
||||||
|
|
||||||
Template.userAvatar.helpers({
|
Template.userAvatar.helpers({
|
||||||
userData() {
|
userData() {
|
||||||
return Users.findOne(this.userId, {
|
return ReactiveCache.getUser(this.userId, {
|
||||||
fields: {
|
fields: {
|
||||||
profile: 1,
|
profile: 1,
|
||||||
username: 1,
|
username: 1,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue