set flag when location is set

This commit is contained in:
Carlosokumu 2024-12-04 09:08:47 +03:00
parent e7c4b5bca7
commit 8efed966a0
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -543,6 +543,7 @@ func (h *Handlers) SaveLocation(ctx context.Context, sym string, input []byte) (
logg.ErrorCtxf(ctx, "failed to write location entry with", "key", common.DATA_LOCATION, "value", temporaryLocation, "error", err)
return res, err
}
res.FlagSet = append(res.FlagSet, flag_location_set)
} else {
if locationSet {
err = store.WriteEntry(ctx, sessionId, common.DATA_TEMPORARY_VALUE, []byte(location))