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