Improved private data deletion
This commit is contained in:
parent
e8aed98b3c
commit
bcb7868f39
@ -9,7 +9,11 @@ func main() {
|
|||||||
color.Yellow("Deleting private user data")
|
color.Yellow("Deleting private user data")
|
||||||
defer arn.Node.Close()
|
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
|
// Iterate over the stream
|
||||||
count := 0
|
count := 0
|
||||||
|
Loading…
Reference in New Issue
Block a user