From c34f3ee653fdf10bbe94567cb3aeb8a90578f672 Mon Sep 17 00:00:00 2001 From: "girish@cloudron.io" Date: Mon, 8 Feb 2016 16:36:26 -0800 Subject: [PATCH] null invitor is ok --- src/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.js b/src/user.js index add6b2962..c24fad775 100644 --- a/src/user.js +++ b/src/user.js @@ -119,7 +119,7 @@ function createUser(username, password, email, displayName, invitor, sendInvite, assert.strictEqual(typeof password, 'string'); assert.strictEqual(typeof email, 'string'); assert.strictEqual(typeof displayName, 'string'); - assert(invitor); + assert.strictEqual(typeof invitor, 'object'); // null is ok assert.strictEqual(typeof sendInvite, 'boolean'); assert.strictEqual(typeof callback, 'function');