fix(Users): Makes sure verifying emails triggers hooks and liveQuery (#3851)

* Use RestWrite when verifying emails so hooks are called (as master)

* Fixes tests for postgres

* nit

* Makes rest.update support a full where instead of objectId

* Use rest.update to guaranteed proper beforeSave and liveQuery calls
This commit is contained in:
Florent Vilmart
2017-05-28 20:34:49 -04:00
committed by GitHub
parent 73aafa2d24
commit c2abbae92d
7 changed files with 29 additions and 31 deletions

View File

@@ -58,7 +58,8 @@ const toPostgresValue = value => {
}
const transformValue = value => {
if (value.__type === 'Pointer') {
if (typeof value === 'object' &&
value.__type === 'Pointer') {
return value.objectId;
}
return value;