Skip to content

Commit af6daa7

Browse files
removed validation service
1 parent 5fb86de commit af6daa7

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

services/impersonationRequests.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,6 @@ export const createImpersonationRequestService = async (
7979
}
8080
};
8181

82-
/**
83-
* Validates whether an impersonation request can be updated by the given user.
84-
* @async
85-
* @function validateUpdateImpersonationRequestService
86-
* @param {string} requestId - The ID of the impersonation request to validate.
87-
* @param {string} lastModifiedBy - The user ID attempting the update.
88-
* @throws {NotFound} If the request does not exist.
89-
* @throws {Forbidden} If the request is already approved, rejected, or the user is unauthorized.
90-
* @throws {Error} For any other error during validation.
91-
*/
92-
export const validateUpdateImpersonationRequestService = async (
93-
requestId: string,
94-
lastModifiedBy: string
95-
) => {
96-
try {
97-
98-
} catch (error) {
99-
logger.error("Error while validating update request", error);
100-
throw error;
101-
}
102-
};
103-
10482
/**
10583
* Validates and Updates an impersonation request and logs the update action.
10684
* @async

0 commit comments

Comments
 (0)