mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-06 16:36:54 +08:00
Adding context to params.KeyExist
This commit is contained in:
@@ -174,7 +174,7 @@ func handleAppend(params internal.HandlerFuncParams) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
key := keys.WriteKeys[0]
|
key := keys.WriteKeys[0]
|
||||||
keyExists := params.KeysExist(keys.WriteKeys)[key]
|
keyExists := params.KeysExist(params.Context, keys.WriteKeys)[key]
|
||||||
value := params.Command[2]
|
value := params.Command[2]
|
||||||
if !keyExists {
|
if !keyExists {
|
||||||
if err = params.SetValues(params.Context, map[string]interface{}{
|
if err = params.SetValues(params.Context, map[string]interface{}{
|
||||||
|
Reference in New Issue
Block a user