chore(backend): remove debug code

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-05-31 20:16:28 +09:00
parent b759732349
commit 120b60cb05
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
3 changed files with 0 additions and 7 deletions

View File

@ -295,9 +295,6 @@ export class ReversiService implements OnApplicationShutdown, OnModuleInit {
isLlotheo: false,
noIrregularRules: options.noIrregularRules,
}, { relations: ['user1', 'user2'] });
if (game.user1 === game.user2) {
throw new Error('broken match');
}
this.cacheGame(game);
const packed = await this.reversiGameEntityService.packDetail(game);

View File

@ -400,8 +400,6 @@ export default abstract class Chart<T extends Schema> {
this.logger.info(`${this.name + (group ? `:${group}` : '')}(${span}): New commit created`);
console.log(log);
return log;
} finally {
unlock();
@ -431,7 +429,6 @@ export default abstract class Chart<T extends Schema> {
// これを回避するための実装は複雑になりそうなため、一旦保留。
const update = async (logHour: RawRecord<T>, logDay: RawRecord<T>): Promise<void> => {
console.log(logHour, logDay);
const finalDiffs = {} as Record<string, number | string[]>;
for (const diff of this.buffer.filter(q => q.group == null || (q.group === logHour.group)).map(q => q.diff)) {

View File

@ -125,7 +125,6 @@ export const miRepository = {
builder.setFindOptions(findOptions);
}
const raw = await builder.execute();
console.log(columnNames, builder.getQueryAndParameters(), raw);
mainAlias.name = name;
const relationId = await new RelationIdLoader(builder.connection, this.queryRunner, builder.expressionMap.relationIdAttributes).load(raw);
const relationCount = await new RelationCountLoader(builder.connection, this.queryRunner, builder.expressionMap.relationCountAttributes).load(raw);