fix globalTransaction empty id issue (#337)
This commit is contained in:
parent
1a78481b08
commit
878b201259
|
@ -572,10 +572,12 @@ func (r *Repository) FindGlobalTransactionByID(ctx context.Context, q *GlobalTra
|
|||
switch {
|
||||
case globalTransaction == nil:
|
||||
result = &GlobalTransactionDoc{
|
||||
ID: q.id,
|
||||
OriginTx: originTx,
|
||||
}
|
||||
case globalTransaction != nil && globalTransaction.OriginTx == nil:
|
||||
result = &GlobalTransactionDoc{
|
||||
ID: q.id,
|
||||
OriginTx: originTx,
|
||||
DestinationTx: globalTransaction.DestinationTx,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue