Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
development to staging (#124)
Browse files Browse the repository at this point in the history
Development to staging
  • Loading branch information
AriefLazuardi authored Dec 17, 2023
2 parents d0911f2 + 9b9e3ad commit 89ff044
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func main() {

midtransCoreApi := midtrans.NewMidtransCoreApi(&config.Midtrans)

myApp.GET("/home", func(c echo.Context) error {
myApp.GET("", func(c echo.Context) error {
return c.String(http.StatusOK, "Welcome to Q Bills API Services")
})

Expand Down
2 changes: 1 addition & 1 deletion repository/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (repository *TransactionRepositoryImpl) GetTotalPayment() (float64, error)
func (repository *TransactionRepositoryImpl) FindRecentTransaction() ([]domain.Transaction, error) {
transactions := []domain.Transaction{}

result := repository.DB.Preload("Cashier").Preload("Membership").Preload("ConvertPoint").Preload("Details.ProductDetail.Product").Preload("Details.ProductDetail").Preload("TransactionPayment.PaymentMethod").Preload("TransactionPayment.PaymentMethod.PaymentType").Where("transactions.deleted_at IS NULL ORDER BY created_at DESC LIMIT 6").Find(&transactions)
result := repository.DB.Preload("Cashier").Preload("Membership").Preload("ConvertPoint").Preload("Details.ProductDetail.Product").Preload("Details.ProductDetail").Preload("TransactionPayment.PaymentMethod").Preload("TransactionPayment.PaymentMethod.PaymentType").Where("transactions.deleted_at IS NULL ORDER BY created_at DESC LIMIT 10").Find(&transactions)
if result.Error != nil {
return nil, result.Error
}
Expand Down
1 change: 1 addition & 0 deletions services/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ func (service *TransactionImpl) NotificationPayment(notificationPayload map[stri
if err != nil {
return fmt.Errorf("error when update transaction status : %s", err.Error())
}

return nil
}

Expand Down

0 comments on commit 89ff044

Please sign in to comment.