🐛 Trying to fix unable create order from rpc

This commit is contained in:
2025-09-07 23:41:05 +08:00
parent fa01b7027a
commit f9269d7558
2 changed files with 136 additions and 136 deletions

View File

@@ -73,7 +73,7 @@ public class Order : ModelBase
Amount = decimal.Parse(proto.Amount),
ExpiredAt = proto.ExpiredAt.ToInstant(),
PayeeWalletId = proto.HasPayeeWalletId ? Guid.Parse(proto.PayeeWalletId) : null,
TransactionId = proto.HasTransactionId ? Guid.Parse(proto.TransactionId) : null,
TransactionId = proto.TransactionId is not null ? Guid.Parse(proto.TransactionId) : null,
Transaction = proto.Transaction is not null ? Transaction.FromProtoValue(proto.Transaction) : null,
};
}