Skip to content

Commit 9eff5b7

Browse files
committed
fix mapping file generation
1 parent 02c68ab commit 9eff5b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/typesync/src/Generator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ export function buildMappingFile(schema: Domain.InsertAppSchema) {
381381
}
382382
}
383383

384-
const typeMapping = ` ${type.name}: {
384+
const typeName = Utils.toPascalCase(type.name);
385+
const typeMapping = ` ${typeName}: {
385386
typeIds: [Id.Id('${type.knowledgeGraphId}')],
386387
properties: {
387388
${properties.join(',\n')},

0 commit comments

Comments
 (0)