mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixing mongodb issuesπ
This commit is contained in:
parent
c9dd663019
commit
165bb05a1b
@ -130,8 +130,9 @@ export class IndexMetadata {
|
||||
}
|
||||
|
||||
this.columnNamesWithOrderingMap = Object.keys(map).reduce((updatedMap, key) => {
|
||||
const column = this.entityMetadata.columns.find(column => column.propertyName === key)!;
|
||||
updatedMap[column.databaseName] = map[key];
|
||||
const column = this.entityMetadata.columns.find(column => column.propertyPath === key);
|
||||
if (column)
|
||||
updatedMap[column.databaseName] = map[key];
|
||||
return updatedMap;
|
||||
}, {} as { [key: string]: number });
|
||||
this.name = namingStrategy.indexName(this.givenName ? this.givenName : undefined, this.entityMetadata.tableName, this.columns.map(column => column.databaseName));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user