Skip to content

Commit b3d5a42

Browse files
include the keys existed info
1 parent 178b371 commit b3d5a42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

shared.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20030,11 +20030,13 @@ func HandleSetCacheKey(resp http.ResponseWriter, request *http.Request) {
2003020030
}
2003120031

2003220032
type returnStruct struct {
20033-
Success bool `json:"success"`
20033+
Success bool `json:"success"`
20034+
KeysExisted []DatastoreKeyMini `json:"keys_existed"`
2003420035
}
2003520036

2003620037
returnData := returnStruct{
20037-
Success: true,
20038+
Success: true,
20039+
KeysExisted: existed,
2003820040
}
2003920041

2004020042
b, err := json.Marshal(returnData)

0 commit comments

Comments
 (0)