Improved private data deletion

This commit is contained in:
Eduard Urbach 2017-11-17 01:07:54 +01:00
parent e8aed98b3c
commit bcb7868f39

View File

@ -9,7 +9,11 @@ func main() {
color.Yellow("Deleting private user data")
defer arn.Node.Close()
arn.DB.Clear("EmailToUser")
emailToUser := arn.DB.Collection("EmailToUser")
testRecord, _ := emailToUser.Get("e.urbach@gmail.com")
emailToUser.Clear()
emailToUser.Set("e.urbach@gmail.com", testRecord)
// Iterate over the stream
count := 0