feat: Add availableTeams to auth.info endpoint (#3981)
* Index emails migration * feat: Add available teams to auth.info endpoint * test * separate presenter * Include data from sessions cookie, include likely logged in state * test * test: Add test for team only in session cookie * Suggested query change in PR feedback
This commit is contained in:
11
server/migrations/20220816175234-user-email-index.js
Normal file
11
server/migrations/20220816175234-user-email-index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
async up (queryInterface) {
|
||||
await queryInterface.addIndex("users", ["email"]);
|
||||
},
|
||||
|
||||
async down (queryInterface) {
|
||||
await queryInterface.removeIndex("users", ["email"]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user