Skip to content

Commit

Permalink
fix: formatting comments
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed May 25, 2024
1 parent dad4992 commit f2f4a4a
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions api/src/recruitment-session/recruitment-session.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ export class RecruitmentSessionService {
private dataSource: DataSource,
) {}

/**
* Create a recruitment session
* @param recruitmentSession - Recruitment session to create
* @returns {Promise<RecruitmentSession>} - Created recruitment session
*/
async createRecruitmentSession(
recruitmentSession: CreateRecruitmentSessionDto,
): Promise<RecruitmentSession> {
Expand All @@ -45,19 +40,10 @@ export class RecruitmentSessionService {
});
}

/**
* List all recruitment sessions
* @returns {Promise<RecruitmentSession[]>} - List of recruitment sessions
*/
async findAllRecruitmentSessions(): Promise<RecruitmentSession[]> {
return await this.recruitmentSessionRepository.find();
}

/**
* Find a recruitment session by its ID
* @param RSid - ID of the recruitment session
* @returns {Promise<RecruitmentSession | null>} - Recruitment session with the given ID
*/
async findRecruitmentSessionById(
RSid: number,
): Promise<RecruitmentSession | null> {
Expand All @@ -67,22 +53,13 @@ export class RecruitmentSessionService {
return matches.length > 0 ? matches[0] : null;
}

/**
* Find an active recruitment session
* @returns {Promise<RecruitmentSession | null>} - Active recruitment session
*/
async findActiveRecruitmentSession(): Promise<RecruitmentSession | null> {
const matches = await this.recruitmentSessionRepository.findBy({
state: RecruitmentSessionState.Active,
});
return matches.length > 0 ? matches[0] : null;
}

/**
* Delete a recruitment session
* @param recruitmentSession - Recruitment session to delete
* @returns {Promise<RecruitmentSession>} - Deleted recruitment session
*/
async deleteRecruitmentSession(
recruitmentSession: RecruitmentSession,
): Promise<RecruitmentSession> {
Expand All @@ -100,11 +77,6 @@ export class RecruitmentSessionService {
return await this.recruitmentSessionRepository.save(recruitmentSession);
}

/**
* Check if a recruitment session has pending interviews
* @param recruitmentSession - Recruitment session to check
* @returns {Promise<boolean>} - True if the recruitment session has pending interviews, false otherwise
*/
async sessionHasPendingInterviews(
recruitmentSession: RecruitmentSession,
): Promise<boolean> {
Expand Down

0 comments on commit f2f4a4a

Please sign in to comment.