Skip to content

Commit 58eaf54

Browse files
author
Volodymyr Malyhin
committed
chore: refactor test to use simple select
1 parent 8eca84e commit 58eaf54

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

registry/server/migrations/20260113105120_sanitize_versioning_secrets.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ export async function up(knex: Knex): Promise<void> {
1818
const secretKeys = new Set(secretSettings.map((s) => s.key));
1919

2020
let count = 0;
21-
const stream = knex('versioning')
21+
const rows = await knex('versioning')
2222
.select('id', 'entity_type', 'data', 'data_after')
23-
.whereIn('entity_type', ENTITY_TYPES)
24-
.stream();
23+
.whereIn('entity_type', ENTITY_TYPES);
2524

26-
for await (const row of stream) {
25+
for (const row of rows) {
2726
const data = sanitizeIfChanged(row.data, row.entity_type, secretKeys);
2827
const dataAfter = sanitizeIfChanged(row.data_after, row.entity_type, secretKeys);
2928

0 commit comments

Comments
 (0)