File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
api/src/certification/configuration/infrastructure/repositories Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ import { Candidate } from '../../domain/models/Candidate.js';
55 * This function find candidates with a certification-course but no reconciledAt
66 *
77 * @param {Object } params
8- * @param {number } params.[ limit] - number of candidates to limit to
8+ * @param {number } [ params.limit] - number of candidates to limit to
99 * @returns {Array<Candidate> } - Candidates returned have a reconciledAt built from certification-course
1010 */
11- export const findCandidateWithoutReconciledAt = async function ( { limit } = { } ) {
11+ export const findCandidateWithoutReconciledAt = async function ( { limit } = { limit : 1 } ) {
1212 const knexConn = DomainTransaction . getConnection ( ) ;
1313 const data = await knexConn ( 'certification-candidates' )
1414 . select ( 'certification-candidates.id' , 'certification-courses.createdAt' )
You can’t perform that action at this time.
0 commit comments