Skip to content

Commit 23d2333

Browse files
committed
Push Neo4j specific implementation from ProductService to ProductRepository
1 parent 40b8761 commit 23d2333

File tree

3 files changed

+293
-226
lines changed

3 files changed

+293
-226
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
@@ -25,14 +25,14 @@ export class FixNaNTotalVerseEquivalentsMigration extends BaseMigration {
2525
.map('id')
2626
.run();
2727

28-
const products = await this.productService.readManyUnsecured(
28+
const products = await this.productService.readMany(
2929
ids,
3030
this.fakeAdminSession,
3131
);
3232

3333
for (const p of products) {
3434
const correctTotalVerseEquivalent = getTotalVerseEquivalents(
35-
...p.scriptureReferences,
35+
...p.scriptureReferences.value,
3636
);
3737

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

0 commit comments

Comments
 (0)