1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00
This commit is contained in:
Rory Powell 2022-09-01 08:29:03 +01:00
parent e416dc6788
commit 53a43ae87d
2 changed files with 4 additions and 4 deletions

View file

@ -144,10 +144,10 @@
userData = await removingDuplicities({ groups, users })
if (!userData.users.length) return
return createUser()
return createUsers()
}
async function createUser() {
async function createUsers() {
try {
createUsersResponse = await users.create(
await removingDuplicities(userData)
@ -164,7 +164,7 @@
if (onboardingType === "emailOnboarding") {
createUserFlow()
} else {
await createUser()
await createUsers()
}
}

View file

@ -38,7 +38,7 @@ describe("/api/global/users", () => {
expect(events.user.invited).toBeCalledTimes(1)
})
it("should be able to generate an invitation for existing user", async () => {
it("should not be able to generate an invitation for existing user", async () => {
const { code, res } = await api.users.sendUserInvite(
sendMailMock,
config.defaultUser!.email,