...
|
...
|
@@ -105,7 +105,8 @@ func (repository *ExchangeCashActivityRepository) Find(queryOptions map[string]i |
|
|
func (repository *ExchangeCashActivityRepository) Remove(exchangeCashActivity *domain.ExchangeCashActivity) (*domain.ExchangeCashActivity, error) {
|
|
|
tx := repository.transactionContext.PgTx
|
|
|
exchangeCashActivityModel := new(models.ExchangeCashActivity)
|
|
|
exchangeCashActivity.ActivityId = exchangeCashActivity.Identity().(int64)
|
|
|
//exchangeCashActivity.ActivityId = exchangeCashActivity.Identity().(int64)
|
|
|
exchangeCashActivityModel.Id = exchangeCashActivity.ActivityId
|
|
|
if _, err := tx.Model(exchangeCashActivityModel).WherePK().Delete(); err != nil {
|
|
|
return exchangeCashActivity, err
|
|
|
}
|
...
|
...
|
|