-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from TogetherCrew/add-unverifiedTelegramUsern…
…ame-support Add unverifiedTelegramUsername support
- Loading branch information
Showing
7 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ | |
// updateBody = { | ||
// email: '[email protected]', | ||
// tcaAt: currentDate, | ||
// unverifiedTelegramUsername: 'alex_jan' | ||
// }; | ||
// }); | ||
// test('should return 200 and successfully update user if data is ok', async () => { | ||
|
@@ -96,6 +97,7 @@ | |
// email: updateBody.email, | ||
// communities: [communityOne._id.toString(), communityTwo._id.toString()], | ||
// tcaAt: currentDate.toISOString(), | ||
// unverifiedTelegramUsername: updateBody.unverifiedTelegramUsername | ||
// }); | ||
|
||
// const dbUser = await User.findById(userOne._id); | ||
|
@@ -121,6 +123,16 @@ | |
// test('should return 400 error if tcaAt is invalid', async () => { | ||
// const updateBody = { tcaAt: 'tcaAt' }; | ||
|
||
// await insertUsers([userOne]); | ||
// await request(app) | ||
// .patch('/api/v1/users/@me') | ||
// .set('Authorization', `Bearer ${userOneAccessToken}`) | ||
// .send(updateBody) | ||
// .expect(httpStatus.BAD_REQUEST); | ||
// }); | ||
|
||
// test('should return 400 error if unverifiedTelegramUsername is invalid', async () => { | ||
// const updateBody = { unverifiedTelegramUsername: 100 }; | ||
// await insertUsers([userOne]); | ||
// await request(app) | ||
// .patch('/api/v1/users/@me') | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ paths: | |
patch: | ||
tags: | ||
- User | ||
summary: update user (to add user email) | ||
summary: update user | ||
security: | ||
- bearerAuth: [] | ||
requestBody: | ||
|
@@ -37,9 +37,13 @@ paths: | |
type: string | ||
format: date-time | ||
description: term and condition accepted date | ||
unverifiedTelegramUsername: | ||
type: string | ||
description: unverified telegram username | ||
example: | ||
email: [email protected] | ||
tcaAt: 2023-10-31T12:48:55.432Z | ||
unverifiedTelegramUsername: alex_jane | ||
|
||
responses: | ||
"200": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters