add user config routes
This commit is contained in:
@@ -3,6 +3,7 @@ import { generateId, generateToken } from "../utils/id";
|
||||
import { CreateUserInput, UpdateUserInput, userModel } from "./user.schema";
|
||||
import { sendMail } from "../utils/mail";
|
||||
import { AuthenticatedUser } from "../auth";
|
||||
import { createUserConfig } from "../userConfig/userConfig.service";
|
||||
|
||||
export const ErrUserNotFound = new Error("user not found");
|
||||
export const ErrOpNotValid = new Error("operation is not valid");
|
||||
@@ -41,6 +42,8 @@ export async function createUser(
|
||||
...input,
|
||||
});
|
||||
|
||||
await createUserConfig(newUser.id, newUser.tenantId);
|
||||
|
||||
const sent = await sendMail(
|
||||
input.email,
|
||||
"You have been invited to Quicker Permtis.",
|
||||
|
||||
Reference in New Issue
Block a user