Skip to content

Commit fb3bcc8

Browse files
committed
fix search WorkPeriod
1 parent cf7aeac commit fb3bcc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/WorkPeriodService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ async function searchWorkPeriods (currentUser, criteria, options = { returnAll:
519519
required: false
520520
}]
521521
}
522-
const workPeriods = await WorkPeriod.findAndCountAll(queryCriteria)
522+
const workPeriods = await WorkPeriod.findAll(queryCriteria)
523523
const total = await WorkPeriod.count({ where: filter })
524524
return {
525525
fromDb: true,

0 commit comments

Comments
 (0)