Skip to content

Commit f15e7c2

Browse files
committed
bugfix: v1 payments should not be marked as v2
`DbPaymentV2::from_v1` erroneously set the version field to 2 anytime we observed a `DbPaymentV1`, resulting in users failing to make progress in the `payments_v2` migration.
1 parent 5736cec commit f15e7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lexe-api-core/src/types/payments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl DbPaymentV2 {
363363
fee: None,
364364
status: Cow::Owned(v1.status),
365365
data: v1.data,
366-
version: 2,
366+
version: 1,
367367
created_at: v1.created_at,
368368
updated_at,
369369
}

0 commit comments

Comments
 (0)