✨ Adds connecting to server
This commit is contained in:
@@ -37,7 +37,7 @@ var gotifyURL string
|
||||
var mut sync.Mutex
|
||||
|
||||
type WriteReq struct {
|
||||
opened bool `body:"opened"`
|
||||
Opened bool `json:"opened"`
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -120,12 +120,12 @@ func main() {
|
||||
}
|
||||
|
||||
mut.Lock()
|
||||
if data.opened == opened {
|
||||
if data.Opened == opened {
|
||||
mut.Unlock()
|
||||
return c.NoContent(http.StatusOK)
|
||||
}
|
||||
|
||||
opened = data.opened
|
||||
opened = data.Opened
|
||||
if locked && alert {
|
||||
var action string
|
||||
if opened {
|
||||
|
||||
Reference in New Issue
Block a user