mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Fix teamId assignment in TeamMemberService
This commit is contained in:
parent
8ad344f1f9
commit
c82f40443b
@ -143,7 +143,9 @@ export class TeamMemberService extends DatabaseService<TeamMember> {
|
||||
const member: TeamMember | null = await this.findOneBy({
|
||||
query: {
|
||||
userId: createBy.data.userId!,
|
||||
teamId: new ObjectID(createBy.data.team!._id!),
|
||||
teamId:
|
||||
createBy.data.teamId ||
|
||||
new ObjectID(createBy.data.team!._id!),
|
||||
},
|
||||
props: {
|
||||
isRoot: true,
|
||||
|
Loading…
Reference in New Issue
Block a user