mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +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({
|
const member: TeamMember | null = await this.findOneBy({
|
||||||
query: {
|
query: {
|
||||||
userId: createBy.data.userId!,
|
userId: createBy.data.userId!,
|
||||||
teamId: new ObjectID(createBy.data.team!._id!),
|
teamId:
|
||||||
|
createBy.data.teamId ||
|
||||||
|
new ObjectID(createBy.data.team!._id!),
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
isRoot: true,
|
isRoot: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user