mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Add new importUsernames field for import user mapping
This commit is contained in:
parent
62ba8ed8d8
commit
0446999c63
7 changed files with 68 additions and 7 deletions
|
|
@ -169,7 +169,10 @@ BlazeComponent.extendComponent({
|
|||
this._refreshMembers(
|
||||
this.members().map(member => {
|
||||
if (!member.wekanId) {
|
||||
const user = Users.findOne({ username: member.username });
|
||||
let user = Users.findOne({ username: member.username });
|
||||
if (!user) {
|
||||
user = Users.findOne({ importUsernames: member.username });
|
||||
}
|
||||
if (user) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('found username:', user.username);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue