mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #189 from javorszky/iss184
Fix forge returning null on empty fetch
This commit is contained in:
commit
ecde2f078a
1 changed files with 3 additions and 3 deletions
|
@ -74,9 +74,9 @@
|
|||
*/
|
||||
return this.forge().fetch().then(function (user) {
|
||||
|
||||
_.each(user.attributes, function (value, key, list) {
|
||||
if (user) {
|
||||
fail = true;
|
||||
});
|
||||
}
|
||||
|
||||
if (fail) {
|
||||
return when.reject(new Error('A user is already registered. Only one user for now!'));
|
||||
|
|
Loading…
Add table
Reference in a new issue