diff --git a/src/commands/__test__/uploadTarea.test.ts b/src/commands/__test__/uploadTarea.test.ts index 126a3c4..9fcd8ad 100644 --- a/src/commands/__test__/uploadTarea.test.ts +++ b/src/commands/__test__/uploadTarea.test.ts @@ -165,7 +165,7 @@ describe('uploadTarea test', () => { const expectedUser: ICreateUserDto = { roles: ['Student'], - username: undefined, + username: 'fake@email.com', externalId: `oauth2|sign-in-with-slack|${MOCKED_SLACK_TEAM_ID}-mockId`, }; diff --git a/src/commands/tarea/uploadTarea.ts b/src/commands/tarea/uploadTarea.ts index 4543290..2702d8e 100644 --- a/src/commands/tarea/uploadTarea.ts +++ b/src/commands/tarea/uploadTarea.ts @@ -44,6 +44,7 @@ export const uploadTarea = async ({ if (!users.length) { const createUserDto: ICreateUserDto = { + username: email, externalId: auth0Id, roles: ['Student'], };