line notify fixes - docker version

pull/66/head
Hunter Long 2018-09-06 14:46:45 -07:00
parent 9bdea90fb7
commit 4acc6a0f35
3 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM hunterlong/statup:base-v0.52 FROM hunterlong/statup:base-v0.55
MAINTAINER "Hunter Long (https://github.com/hunterlong)" MAINTAINER "Hunter Long (https://github.com/hunterlong)"
# Locked version of Statup for 'latest' Docker tag # Locked version of Statup for 'latest' Docker tag

View File

@ -1,4 +1,4 @@
VERSION=0.54 VERSION=0.55
BINARY_NAME=statup BINARY_NAME=statup
GOPATH:=$(GOPATH) GOPATH:=$(GOPATH)
GOCMD=go GOCMD=go
@ -92,6 +92,8 @@ docker-dev: clean docker-build-base
docker-push-dev: docker-push-dev:
docker push hunterlong/statup:dev docker push hunterlong/statup:dev
docker-push-cypress:
docker push hunterlong/statup:cypress docker push hunterlong/statup:cypress
docker-push-latest: docker docker-push-latest: docker

View File

@ -159,7 +159,8 @@ func (u *LineNotify) OnSave() error {
// ON SERVICE FAILURE, DO YOUR OWN FUNCTIONS // ON SERVICE FAILURE, DO YOUR OWN FUNCTIONS
func (u *LineNotify) Install() error { func (u *LineNotify) Install() error {
inDb, err := lineNotify.Notification.IsInDatabase() var err error
inDb := lineNotify.Notification.IsInDatabase()
if !inDb { if !inDb {
newNotifer, err := InsertDatabase(u.Notification) newNotifer, err := InsertDatabase(u.Notification)
if err != nil { if err != nil {
@ -169,4 +170,4 @@ func (u *LineNotify) Install() error {
utils.Log(1, fmt.Sprintf("new notifier #%v installed: %v", newNotifer, u.Method)) utils.Log(1, fmt.Sprintf("new notifier #%v installed: %v", newNotifer, u.Method))
} }
return err return err
} }