chore(backend): remove log

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-05-31 18:24:24 +09:00
parent 0be3f56a16
commit 52cd2bb2f9
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
1 changed files with 0 additions and 8 deletions

View File

@ -115,20 +115,12 @@ export const miRepository = {
this.selectAliasColumnNames(queryBuilder, builder);
if (findOptions) {
builder.setFindOptions(findOptions);
console.log(builder.expressionMap.relationIdAttributes, builder.expressionMap.relationCountAttributes, builder.expressionMap.relationPropertyPath);
const [query, parameters] = builder.getQueryAndParameters();
for (let i = 0; i < Math.ceil(query.length / 10000); i++) {
console.log(query.slice(i * 10000, i * 10000 + 10000));
}
console.log(parameters);
}
const raw = await builder.execute();
console.log(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);
const result = new RawSqlResultsToEntityTransformer(builder.expressionMap, builder.connection.driver, relationId, relationCount, this.queryRunner).transform(raw, mainAlias);
console.log(raw, relationId, relationCount, result, mainAlias.metadata.primaryColumns.map((column) => DriverUtils.buildAlias(builder.connection.driver, undefined, mainAlias.name, column.databaseName)));
return result[0];
},
selectAliasColumnNames(queryBuilder, builder) {