Commit f7a9ce9
fix(api): purge snapshot — null out stripe IDs from dropped tables
Build was failing because the new PurgeOrganizationSnapshotService
(added on main while this branch was open) queried db.organizationBilling
and db.pentestSubscription, both of which we dropped in migration
20260427000000_pentest_credits. The git auto-merge couldn't catch this
— it's a logical conflict, not a textual one.
Replace the queries with null literals. The snapshot's `stripe.customerId`
and `stripe.subscriptionId` shape is preserved so downstream consumers
(purge orchestrator, restore tooling) keep working; the legacy tables
had no production data anyway, and v2 billing will add new fields here
when it lands.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f5e2528 commit f7a9ce9
1 file changed
Lines changed: 13 additions & 12 deletions
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
| |||
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
133 | 134 | | |
134 | | - | |
135 | | - | |
| 135 | + | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
0 commit comments