From 03c0cac9720aaf614b3861507a4c06bbce310165 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Sun, 7 Mar 2021 13:05:04 +0100 Subject: [PATCH] use "--output=json" instead of "--json" when calling signal-cli receive * --json is deprecated see #103 --- src/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.go b/src/api/api.go index e25cbe1..3cbfc8c 100644 --- a/src/api/api.go +++ b/src/api/api.go @@ -605,7 +605,7 @@ func (a *Api) Receive(c *gin.Context) { timeout := c.DefaultQuery("timeout", "1") - command := []string{"--config", a.signalCliConfig, "-u", number, "receive", "-t", timeout, "--json"} + command := []string{"--config", a.signalCliConfig, "--output", "json", "-u", number, "receive", "-t", timeout} out, err := runSignalCli(true, command, "") if err != nil { c.JSON(400, gin.H{"error": err.Error()})