wip-flag-migration #28
@ -219,13 +219,13 @@ func (h *Handlers) SetResetSingleEdit(ctx context.Context, sym string, input []b
|
|||||||
|
|
||||||
switch menuOption {
|
switch menuOption {
|
||||||
case "2":
|
case "2":
|
||||||
res.FlagReset = append(res.FlagSet, flags["flag_allow_update"])
|
res.FlagReset = append(res.FlagReset, flags["flag_allow_update"])
|
||||||
res.FlagSet = append(res.FlagSet, flags["flag_single_edit"])
|
res.FlagSet = append(res.FlagSet, flags["flag_single_edit"])
|
||||||
Alfred-mk marked this conversation as resolved
Outdated
|
|||||||
case "3":
|
case "3":
|
||||||
res.FlagReset = append(res.FlagSet, flags["flag_allow_update"])
|
res.FlagReset = append(res.FlagReset, flags["flag_allow_update"])
|
||||||
res.FlagSet = append(res.FlagSet, flags["flag_single_edit"])
|
res.FlagSet = append(res.FlagSet, flags["flag_single_edit"])
|
||||||
case "4":
|
case "4":
|
||||||
res.FlagReset = append(res.FlagSet, flags["flag_allow_update"])
|
res.FlagReset = append(res.FlagReset, flags["flag_allow_update"])
|
||||||
res.FlagSet = append(res.FlagSet, flags["flag_single_edit"])
|
res.FlagSet = append(res.FlagSet, flags["flag_single_edit"])
|
||||||
default:
|
default:
|
||||||
res.FlagReset = append(res.FlagReset, flags["flag_single_edit"])
|
res.FlagReset = append(res.FlagReset, flags["flag_single_edit"])
|
||||||
@ -489,8 +489,8 @@ func (h *Handlers) CheckAccountStatus(ctx context.Context, sym string, input []b
|
|||||||
res.FlagSet = append(res.FlagSet, flags["flag_account_success"])
|
res.FlagSet = append(res.FlagSet, flags["flag_account_success"])
|
||||||
res.FlagReset = append(res.FlagReset, flags["flag_account_pending"])
|
res.FlagReset = append(res.FlagReset, flags["flag_account_pending"])
|
||||||
} else {
|
} else {
|
||||||
res.FlagReset = append(res.FlagSet, flags["flag_account_success"])
|
res.FlagReset = append(res.FlagReset, flags["flag_account_success"])
|
||||||
res.FlagSet = append(res.FlagReset, flags["flag_account_pending"])
|
res.FlagSet = append(res.FlagSet, flags["flag_account_pending"])
|
||||||
}
|
}
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user
here appends to set but assign to reset. happens in the below, too.