Skip to content

fix: repair dev after the 2026-10-18 to 2026-10-22 merges - #1090

Merged
Omoboi-dev merged 1 commit into
devfrom
fix/dev-red-2026-10-22
Oct 22, 2026
Merged

Omoboi-dev merged 1 commit into
devfrom
fix/dev-red-2026-10-22

Conversation

@Omoboi-dev

Copy link
Copy Markdown
Contributor

Summary

dev stopped compiling on 2026-10-18 when #1016 and #1011 left half-merged code in two files. CI failed at the typecheck from then on, so none of the PRs merged since were type checked or tested. This PR fixes the build and every failure the broken build was hiding.

Verified locally on Node 22 against Postgres, using the env from each workflow:

Check Result
npm run typecheck 0 errors
npm run lint:check 0 errors (9 existing warnings)
npm run build passes
npm run test:cov 127 suites, 1876 tests pass
check_coverage.js branches 84.14%, functions 92.63%
check_test_match.js all 127 files match
npm run openapi:generate passes
npm run test:integration 39 suites, 343 tests pass
npm run test:e2e 12 suites, 64 tests pass

Build fixes

Runtime fixes

Tests updated for intended behavior

Each of these changes was deliberate in its PR, but the PR never updated the tests:

The other changed files are prettier reformatting of code the merges left unformatted. In those files, the only change besides whitespace is one redundant type cast removed by ESLint.

Not in this PR

dev stopped compiling on 2026-10-18 (#1016 and #1011 left half-merged
code behind), so every PR merged since was never type checked or tested
in CI. This fixes the build and the failures it was hiding.

Build:
- admin-stats.service: drop the stale pre-repository block #1016 pasted in
- update-vendor-profile.dto: keep only the PartialType class from #1011
- sep10.constants, config.module: restore what #1077 overwrote from an
  old base; move its ACCESS_TOKEN_TTL max(86400) into config.schema
- escrow.service: remove the duplicate encryptContact import; notifyCancelled
  never existed, so refunds use notifyRefunded and cancels notify nothing,
  like the other cancel paths
- main.ts, stress-test controller, account details DTO: missing imports
- notifications.service: remove dispatch, unused since #1019, and move its
  spans onto the buyer dispatch path

Runtime:
- logistics.module: GiglClient's factory injected GiglLogisticsService,
  which injects GiglClient, so the app could not boot. Resolve the
  service through ModuleRef when the token is read
- tracking-poll.worker: restore the no-trackingId and unmapped-escrow
  guards and drop the non-null assertion on contractEscrowId

Tests updated for intended behaviour changes: JwtGuard reads config only
(#1032), GiglClient takes getApiToken (#1016), no sends to Stellar
addresses (#946), quiet polls advance the cursor (#917, #1042), audit log
filters (#1015), unmapped escrows excluded (#960), /admin/credentials
(#1033), E.164 phones (#1010), ISO 4217 currency (#1064). Restores two
tests #1077 deleted. Prettier fixes across files the merges left
unformatted.
@Omoboi-dev
Omoboi-dev merged commit 96d9d25 into dev Oct 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant