Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ONYVA
onyva-back
Commits
967b4447
Commit
967b4447
authored
4 years ago
by
Joao Nascimento
Browse files
Options
Download
Email Patches
Plain Diff
Modify login to return repairShopId
parent
0f341407
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/operations/RepairShop/LoginToRepairShopOperation.js
+1
-3
src/app/operations/RepairShop/LoginToRepairShopOperation.js
with
1 addition
and
3 deletions
+1
-3
src/app/operations/RepairShop/LoginToRepairShopOperation.js
View file @
967b4447
const
NotFoundException
=
require
(
'
../../../../src/infra/exceptions/NotfoundException
'
);
module
.
exports
=
({
repairShopService
})
=>
({
async
execute
(
data
)
{
const
repairShop
=
await
repairShopService
.
findByFilter
(
data
);
const
canLogin
=
{
canLogin
:
false
};
const
canLogin
=
{
canLogin
:
false
,
repairShopId
:
repairShop
.
_id
};
if
(
!
repairShop
)
{
return
canLogin
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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