cmd/stcli: Update for new folder type

This commit is contained in:
Jakob Borg 2016-12-17 01:44:18 +01:00
parent 9fdaa637a8
commit 3c2ac3522c

View File

@ -148,7 +148,7 @@ func foldersOverride(c *cli.Context) {
cfg := getConfig(c)
rid := c.Args()[0]
for _, folder := range cfg.Folders {
if folder.ID == rid && folder.Type == config.FolderTypeReadOnly {
if folder.ID == rid && folder.Type == config.FolderTypeSendOnly {
response := httpPost(c, "db/override", "")
if response.StatusCode != 200 {
err := fmt.Sprint("Failed to override changes\nStatus code: ", response.StatusCode)