🚚 create backup folder
create backup folder for archive the old modules
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
import { userRoleAssignmentModel } from "../userRoleAssignment.model";
|
||||
import { InputUserRoleAssignment } from "../userRoleAssignment.types";
|
||||
|
||||
export const assignRoleToUserRepository = async ({
|
||||
userId,
|
||||
roleId,
|
||||
}: InputUserRoleAssignment) => {
|
||||
const assignRoleToUser = await userRoleAssignmentModel.create({
|
||||
data: {
|
||||
userId,
|
||||
roleId,
|
||||
},
|
||||
});
|
||||
|
||||
return assignRoleToUser;
|
||||
};
|
||||
Reference in New Issue
Block a user