Skip to content

Commit 97ade13

Browse files
committed
fix: refactor query executor
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 5e5c010 commit 97ade13

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

services/apps/packages_worker/src/maven/backfillRepositoryUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export async function backfillMavenRepositoryUrls(
103103
// so the inconsistency would never be repaired. On rollback the row stays
104104
// unchanged and is reprocessed on the next run.
105105
await withDeadlockRetry(() =>
106-
qx.tx(async (t) => {
106+
qx.tx(async (t: QueryExecutor) => {
107107
await updateMavenRepositoryUrls(t, updates)
108108
await deleteMavenPackageRepoLinks(t, pruneTargets)
109109
for (const target of linkTargets) {

services/apps/packages_worker/src/maven/runMavenEnrichmentLoop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async function processCriticalPackage(qx: QueryExecutor, pkg: PackageRow, forceF
268268
const repositoryUrl = normalizeScmUrl(result.scmUrl)
269269

270270
await withDeadlockRetry(() =>
271-
qx.tx(async (t) => {
271+
qx.tx(async (t: QueryExecutor) => {
272272
const changed = new Set<string>()
273273

274274
const { id: packageId, changedFields: pkgChanged } = await upsertPackage(t, {

0 commit comments

Comments
 (0)