Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsdeman committed Aug 19, 2023
1 parent e94778a commit 6e52d56
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/mailcowDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ export async function initializeMailcowDB(config: ContainerConfig): Promise<void
database: 'mailcow',
});

dataSource.initialize()
await dataSource.initialize()
.catch((error) => {
console.log(error);
});

// const test = await dataSource.manager
// .createQueryBuilder()
// .select('c_defaults')
// .from('sogo_user_profile', 'sogo_user_profile')
// .where('c_uid = [email protected]')
// .getOne();
//
// console.log(test);
const test = await dataSource
.createQueryBuilder()
.select('c_defaults')
.from('sogo_user_profile', 'sogo_user_profile')
.where('c_uid = [email protected]')
.getOne();

console.log(test);

}

Expand Down

0 comments on commit 6e52d56

Please sign in to comment.