Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shahriar
instagram-service
Commits
42ec9d0e
Commit
42ec9d0e
authored
Aug 22, 2021
by
shahriar
☹
Browse files
makke change status api case insensitive
parent
1a740823
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lottery/lottery.service.ts
View file @
42ec9d0e
...
...
@@ -96,7 +96,10 @@ export class LotteryService {
async
changeStatus
(
changeStatus
:
ChangeStatusDto
)
{
const
foundUser
=
await
this
.
userModel
.
findOne
({
username
:
changeStatus
.
username
,
username
:
{
$regex
:
changeStatus
.
username
,
$options
:
'
i
'
,
},
});
if
(
!
foundUser
)
{
throw
new
NotFoundException
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment