mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: issue in mail sender.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user