Skip to content

Commit 49d5c22

Browse files
committed
Working on dev is fun
2 parents fc14418 + c41b1fa commit 49d5c22

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/controller/registry-org.controller/registry-org.controller.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,31 @@ async function getAllOrgs (req, res, next) {
4545
returnValue.organizations[i].conversation = conversation?.length ? conversation : undefined
4646
}
4747
} catch (error) {
48+
<<<<<<< HEAD
49+
=======
50+
await session.abortTransaction()
51+
>>>>>>> c41b1faa78a401dd315a7d73264335ce264a8e7c
4852
// Handle the specific error thrown by BaseOrgRepository.createOrg
4953
if (error.message && error.message.includes('Unknown Org type requested')) {
5054
return res.status(400).json({ message: error.message })
5155
}
56+
<<<<<<< HEAD
5257
return res.status(500).json({ catch: 'inner', message: error })
58+
=======
59+
return res.status(500).json({ message: error })
60+
>>>>>>> c41b1faa78a401dd315a7d73264335ce264a8e7c
5361
} finally {
5462
await session.endSession()
5563
}
5664

5765
logger.info({ uuid: req.ctx.uuid, message: 'The orgs were sent to the user.' })
5866
return res.status(200).json(returnValue)
5967
} catch (err) {
68+
<<<<<<< HEAD
6069
return res.status(500).json({ catch: 'outer', message: err })
70+
=======
71+
return res.status(500).json({ message: err })
72+
>>>>>>> c41b1faa78a401dd315a7d73264335ce264a8e7c
6173
}
6274
}
6375

0 commit comments

Comments
 (0)