fix: issue in mail sender.

This commit is contained in:
a.bouhuolia
2020-12-17 01:16:08 +02:00
parent 3ac6d8897e
commit 46d06bd591
32 changed files with 538 additions and 334 deletions

View File

@@ -58,9 +58,10 @@ export default class OrganizationController extends BaseController{
*/
async build(req: Request, res: Response, next: Function) {
const { organizationId } = req.tenant;
const { user } = req;
try {
await this.organizationService.build(organizationId);
await this.organizationService.build(organizationId, user);
return res.status(200).send({
type: 'success',