feat: Write integration test for users.

This commit is contained in:
Ahmed Bouhuolia
2020-05-25 12:02:38 +02:00
parent 5369b3661a
commit d7e4694dfa
6 changed files with 303 additions and 17 deletions

View File

@@ -1,4 +1,3 @@
import express from 'express';
import { check, validationResult } from 'express-validator';
import path from 'path';
@@ -176,6 +175,7 @@ export default {
await TenantUser.bindKnex(tenantDb).query().insert({
...userInsert,
invite_accepted_at: moment().format('YYYY/MM/DD HH:mm:ss'),
});
Logger.log('info', 'New tenant has been created.', { organizationId });