logs
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
This commit is contained in:
parent
4ed1839893
commit
7d847d1575
1 changed files with 4 additions and 2 deletions
|
|
@ -134,13 +134,15 @@ class PaymentDao extends DatabaseAccessor<AppDatabase>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Обновить статус платежа
|
/// Обновить статус платежа
|
||||||
Future<void> updatePaymentStatus(String paymentId, String status) {
|
Future<void> updatePaymentStatus(String paymentId, String status) async {
|
||||||
return (update(payments)..where((p) => p.id.equals(paymentId))).write(
|
print('🔍 PaymentDao.updatePaymentStatus: paymentId=$paymentId, status=$status');
|
||||||
|
final result = await (update(payments)..where((p) => p.id.equals(paymentId))).write(
|
||||||
PaymentsCompanion(
|
PaymentsCompanion(
|
||||||
status: Value(status),
|
status: Value(status),
|
||||||
updatedAt: Value(PgDateTime(DateTime.now())),
|
updatedAt: Value(PgDateTime(DateTime.now())),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
print('✅ PaymentDao.updatePaymentStatus: result=$result');
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Получить платеж по externalToken (только активные)
|
/// Получить платеж по externalToken (только активные)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue