fixes: correct users importing id (#645)
@princemaple could you try out this branch to see if it works on your end?
This commit is contained in:
1 parent
dadfffbd31
commit
9c42269b62
2 files changed
+4
-1
No files matched your search
@@ -70,6 +70,10 @@ list or set it to 0.`,
|
||||
checkErr(usernameConflictError(user.Username, conflictuous.ID, user.ID))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// If it doesn't exist, set the ID to 0 to automatically get a new
|
||||
// one that make sense in this DB.
|
||||
user.ID = 0
|
||||
}
|
||||
|
||||
err = d.store.Users.Save(user)
|
||||
|
||||
Reference in new issue
Block a user