Skip to content

Commit 2c62417

Browse files
committed
fix: migration script
1 parent b203eab commit 2c62417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrations/2021-04-10-populate-work-periods-for-resource-bookings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
await Promise.all(resourceBookings.map(async rb => {
3333
if (!_.isNil(rb.startDate) && !_.isNil(rb.endDate)) {
3434
const periods = helper.extractWorkPeriods(rb.startDate, rb.endDate)
35-
const user = await helper.getUserById(rb.userId)
35+
const user = await helper.ensureUserById(rb.userId)
3636
_.forEach(periods, period => {
3737
workPeriodData.push({
3838
id: uuid(),

0 commit comments

Comments
 (0)