Fix subscription cancellation via API

This commit is contained in:
Patrick Pacher 2020-10-15 11:27:14 +02:00
parent 7e1125fc65
commit fca326d8c7
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D

View file

@ -146,7 +146,7 @@ func (api *DatabaseAPI) handler() {
parts := bytes.SplitN(msg, []byte("|"), 3)
// Handle special command "cancel"
if len(parts) == 2 && string(parts[1]) != "cancel" {
if len(parts) == 2 && string(parts[1]) == "cancel" {
// 125|cancel
// 127|cancel
go api.handleCancel(parts[0])