調査用のコードを削除

This commit is contained in:
saito.k 2023-11-16 17:32:51 +09:00
parent da131e82e6
commit 50e3684423
2 changed files with 2 additions and 4 deletions

View File

@ -101,7 +101,6 @@ import * as redisStore from 'cache-manager-redis-store';
database: configService.get('DB_NAME'),
autoLoadEntities: true, // forFeature()で登録されたEntityを自動的にロード
synchronize: false, // trueにすると自動的にmigrationが行われるため注意
logging: true,
}),
inject: [ConfigService],
}),

View File

@ -343,7 +343,6 @@ export class UsersRepositoryService {
async findSameAccountUsers(external_id: string): Promise<User[]> {
return await this.dataSource.transaction(async (entityManager) => {
const repo = entityManager.getRepository(User);
console.log(new Date());
const accountId = (await repo.findOne({ where: { external_id } }))
?.account_id;
@ -351,7 +350,7 @@ export class UsersRepositoryService {
if (!accountId) {
throw new AccountNotFoundError('Account is Not Found.');
}
console.log(new Date());
const dbUsers = await repo.find({
relations: {
userGroupMembers: {
@ -361,7 +360,7 @@ export class UsersRepositoryService {
},
where: { account_id: accountId },
});
console.log(new Date());
return dbUsers;
});
}