Skip to content

Commit 50381dd

Browse files
committed
Push Neo4j specific implementation from ProductService to ProductRepository
1 parent 15e40ef commit 50381dd

File tree

3 files changed

+265
-225
lines changed

3 files changed

+265
-225
lines changed

src/components/product/migrations/fix-nan-total-verse-equivalents.migration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ export class FixNaNTotalVerseEquivalentsMigration extends BaseMigration {
2424
.map('id')
2525
.run();
2626

27-
const products = await this.productService.readManyUnsecured(ids);
27+
const products = await this.productService.readMany(ids);
2828

2929
for (const p of products) {
3030
const correctTotalVerseEquivalent = getTotalVerseEquivalents(
31-
...p.scriptureReferences,
31+
...p.scriptureReferences.value,
3232
);
3333

3434
if (p.__typename === 'DirectScriptureProduct') {

0 commit comments

Comments
 (0)