mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-30 15:24:15 +00:00
use "--output=json" instead of "--json" when calling signal-cli receive
* --json is deprecated see #103
This commit is contained in:
parent
bdf5627b51
commit
03c0cac972
@ -605,7 +605,7 @@ func (a *Api) Receive(c *gin.Context) {
|
|||||||
|
|
||||||
timeout := c.DefaultQuery("timeout", "1")
|
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, "")
|
out, err := runSignalCli(true, command, "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.JSON(400, gin.H{"error": err.Error()})
|
c.JSON(400, gin.H{"error": err.Error()})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user