build(backend): transform empty

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-05-30 11:58:57 +09:00
parent 9d73ccab34
commit 559d92f16d
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99
1 changed files with 1 additions and 2 deletions

View File

@ -113,9 +113,8 @@ export const miRepository = {
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(queryBuilder.expressionMap, queryBuilder.connection.driver, relationId, relationCount, this.queryRunner).transform(raw, queryBuilder.expressionMap.mainAlias!);
console.log(raw, relationId, relationCount, result);
console.log(raw, relationId, relationCount, result, queryBuilder.expressionMap.mainAlias!.metadata.columns);
throw null;
return result;
},
selectAliasColumnNames(queryBuilder, builder) {
let selectOrAddSelect = (selection: string, selectionAliasName?: string) => {