docs(readme):close issue2728 (#2793)

This commit is contained in:
Sebin CM 2023-10-04 19:24:38 +05:30 committed by GitHub
parent 9a554e4370
commit 507966ecd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ DEFINE INDEX email ON TABLE user COLUMNS email UNIQUE;
-- Create a new event whenever a user changes their email address
DEFINE EVENT email ON TABLE user WHEN $before.email != $after.email THEN (
CREATE event SET user = $this, time = time::now(), value = $after.email, action = 'email_changed'
CREATE event SET user = $value, time = time::now(), value = $after.email, action = 'email_changed'
);
```