Skip to content

Commit 11cf93a

Browse files
committed
Final fix gocron
1 parent fed853e commit 11cf93a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ RUN cd /go/src/github.com/matthieudolci/hatcher && \
66

77
FROM alpine:3.7
88
RUN apk add --no-cache ca-certificates tzdata
9+
ENV TZ America/Los_Angeles
910
COPY --from=build /go/src/github.com/matthieudolci/hatcher/hatcher /bin
1011
CMD ["/bin/hatcher"]

bot/happiness_survey.go

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func (s *Slack) GetTimeAndUsersHappinessSurvey() error {
101101
}
102102
}
103103
defer rows.Close()
104+
gocron.Clear()
104105
for rows.Next() {
105106
scheduledata := ScheduleData{}
106107
err = rows.Scan(&scheduledata.Times, &scheduledata.UserID)

0 commit comments

Comments
 (0)