Commit 967b4447 authored by Joao Nascimento's avatar Joao Nascimento
Browse files

Modify login to return repairShopId

parent 0f341407
Showing with 1 addition and 3 deletions
+1 -3
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment