🚚 create backup folder
create backup folder for archive the old modules
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
import { assignRoleToUserRepository } from "../repositories/assignRoleToUser.repository";
|
||||
import { ErrorForwarder } from "../../../helpers/error/instances/forwarder";
|
||||
import { InputUserRoleAssignment } from "../userRoleAssignment.types";
|
||||
|
||||
export const assignRoleToUserService = async (
|
||||
payload: InputUserRoleAssignment
|
||||
) => {
|
||||
try {
|
||||
const assignRoleToUser = await assignRoleToUserRepository(payload);
|
||||
return assignRoleToUser;
|
||||
} catch (error) {
|
||||
ErrorForwarder(error);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user