mirror of
https://github.com/wekan/wekan.git
synced 2026-01-21 16:56:11 +01:00
Make sure user data is retrieved before proceeding with import
This commit is contained in:
parent
0adde3e06d
commit
d647884b91
3 changed files with 68 additions and 42 deletions
|
|
@ -1,14 +1,12 @@
|
|||
Meteor.publish('user-miniprofile', function(userId) {
|
||||
check(userId, String);
|
||||
Meteor.publish('user-miniprofile', function(usernames) {
|
||||
check(usernames, Array);
|
||||
|
||||
return Users.find(userId, {
|
||||
fields: {
|
||||
username: 1,
|
||||
'profile.fullname': 1,
|
||||
'profile.avatarUrl': 1,
|
||||
'profile.initials': 1,
|
||||
},
|
||||
});
|
||||
// eslint-disable-next-line no-console
|
||||
// console.log('usernames:', usernames);
|
||||
return Users.find(
|
||||
{ username: { $in: usernames } },
|
||||
{ fields: Users.safeFields },
|
||||
);
|
||||
});
|
||||
|
||||
Meteor.publish('user-admin', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue