File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ async function loadReviewTypes () {
37
37
id : reviewType . id ,
38
38
body : _ . extend ( { resource : 'reviewType' } , reviewType )
39
39
}
40
- promises . push ( osClient . create ( record ) )
40
+ promises . push ( osClient . index ( record ) )
41
41
} )
42
42
await Promise . all ( promises )
43
43
}
@@ -53,7 +53,7 @@ async function loadSubmissions () {
53
53
id : submission . id ,
54
54
body : _ . extend ( { resource : 'submission' } , submission )
55
55
}
56
- promises . push ( osClient . create ( record ) )
56
+ promises . push ( osClient . index ( record ) )
57
57
} )
58
58
await Promise . all ( promises )
59
59
}
@@ -69,7 +69,7 @@ async function loadReviews () {
69
69
id : review . id ,
70
70
body : _ . extend ( { resource : 'review' } , review )
71
71
}
72
- promises . push ( osClient . create ( record ) )
72
+ promises . push ( osClient . index ( record ) )
73
73
} )
74
74
await Promise . all ( promises )
75
75
}
@@ -85,7 +85,7 @@ async function loadReviewSummations () {
85
85
id : reviewSummation . id ,
86
86
body : _ . extend ( { resource : 'reviewSummation' } , reviewSummation )
87
87
}
88
- promises . push ( osClient . create ( record ) )
88
+ promises . push ( osClient . index ( record ) )
89
89
} )
90
90
await Promise . all ( promises )
91
91
}
You can’t perform that action at this time.
0 commit comments