~jshsj/gise_reminder_server

a8cb32a400ad52676a8946aa0e4e5bc9e00446b7 — JSH 1 year, 7 months ago 6026ae3
added start of crontimer
2 files changed, 1 insertions(+), 4 deletions(-)

M gise_reminder
M main.go
M gise_reminder => gise_reminder +0 -0

M main.go => main.go +1 -4
@@ 115,6 115,7 @@ func generateAnrede() string {

func initNotificationTimer() {
	gocron.Every(1).Day().At("17:00").Do(handleNotification)
	<-gocron.Start()
}

func handleNotification() {


@@ 148,10 149,6 @@ func handleNotification() {
	client.Do(req)
}

func runRequestToOnesigal() {

}

func TestReminderQuery(t *testing.T) {
	req, err := http.NewRequest("GET", "/gise", nil)
	if err != nil {