docs(readme):close issue2728 (#2793)
This commit is contained in:
parent
9a554e4370
commit
507966ecd2
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
);
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue