From 55735dd165288dd356cb8212d350e108ec08abc6 Mon Sep 17 00:00:00 2001 From: Leon Vreling Date: Mon, 23 Nov 2020 22:22:18 +0100 Subject: [PATCH] fix: fix tests --- models/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/User.js b/models/User.js index f14af584..0666dd78 100644 --- a/models/User.js +++ b/models/User.js @@ -134,7 +134,7 @@ const User = sequelize.define('user', { if (this.primary_email === 'gsuite') { return this.gsuite_id; } - return this.primary_email; + return this.email; } }, last_logged_in: {