Skip to content

Commit 8b86af9

Browse files
committed
feat: savannah api service
1 parent 34a5762 commit 8b86af9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/api/middlewares.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (app *Application) DeserializeCustomer(next http.Handler) http.Handler {
4343

4444
// Set current user to user context
4545
ctx := r.Context()
46-
ctx = context.WithValue(ctx, "customer", customer)
46+
ctx = context.WithValue(ctx, "Customer", customer)
4747
next.ServeHTTP(w, r.WithContext(ctx))
4848
})
4949
}

cmd/utils/sms.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func Sendmessage (to string, order *data.Order) {
2020
// Define a request for the Bulk SMS request
2121
bulkRequest := &sms.BulkRequest{
2222
To: []string{"+254723285857"},
23-
Message: fmt.Sprintf("Hello, %s, your order for %s has been received and is being processed", order.CustomerID, order.Product.ProductName),
23+
Message: fmt.Sprintf("hello, %s, your order for %s has been received and is being processed", order.CustomerID, order.Product.ProductName),
2424
From: "",
2525
BulkSMSMode: true,
2626
RetryDuration: time.Hour,

0 commit comments

Comments
 (0)