Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Commit

Permalink
The txn name is singular
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Feb 26, 2019
1 parent 81081a6 commit 7740f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TxnHandler(w http.ResponseWriter, r *http.Request) {
// Ignore anything other than card transactions or specific inbound transactions likely to be large payments like salary etc
if wh.WebhookType != "TRANSACTION_CARD" &&
wh.WebhookType != "TRANSACTION_MOBILE_WALLET" &&
wh.WebhookType != "TRANSACTION_FASTER_PAYMENTS_IN" &&
wh.WebhookType != "TRANSACTION_FASTER_PAYMENT_IN" &&
wh.WebhookType != "TRANSACTION_NOSTRO_DEPOSIT" {
log.Printf("INFO: ignoring %s transaction\n", wh.WebhookType)
return
Expand Down Expand Up @@ -114,7 +114,7 @@ func TxnHandler(w http.ResponseWriter, r *http.Request) {
prettyRa = float64(ra) / 100
log.Println("INFO: round-up yields:", ra)

case "TRANSACTION_FASTER_PAYMENTS_IN", "TRANSACTION_NOSTRO_DEPOSIT":
case "TRANSACTION_FASTER_PAYMENT_IN", "TRANSACTION_NOSTRO_DEPOSIT":
// Return early if no savings goal
if s.SweepSavingGoal == "" {
log.Println("INFO: no sweep savings goal set. Nothing to do.")
Expand Down

0 comments on commit 7740f6e

Please sign in to comment.