Remove load .env from bin path
This commit is contained in:
parent
917d6d9103
commit
074c32a8f1
4
main.go
4
main.go
@ -60,13 +60,13 @@ func main() {
|
|||||||
}
|
}
|
||||||
} else if len(*flagMonobankDoTransaction) > 0 {
|
} else if len(*flagMonobankDoTransaction) > 0 {
|
||||||
var monobankTransaction monobank.WebHookResponse
|
var monobankTransaction monobank.WebHookResponse
|
||||||
err = json.Unmarshal([]byte(*flagMonobankDoTransaction), &monobankTransaction)
|
err := json.Unmarshal([]byte(*flagMonobankDoTransaction), &monobankTransaction)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err.Error())
|
fmt.Println(err.Error())
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := app.ImportTransaction(monobankTransaction)
|
err = app.ImportTransaction(monobankTransaction)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err.Error())
|
fmt.Println(err.Error())
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user