Skip to content

Commit e60fdbe

Browse files
committed
improve formatting
1 parent 8f69f71 commit e60fdbe

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

apps/events/src/utils/convertTypesData.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -260,26 +260,26 @@ export function generateMappingForType(type: TypeData): string {
260260
}
261261

262262
const properties = Object.entries(mappingProperties)
263-
.map(([key, value]) => ` ${key}: ${value}`)
263+
.map(([key, value]) => ` ${key}: ${value}`)
264264
.join(',\n');
265265

266266
const relations = Object.entries(mappingRelations)
267-
.map(([key, value]) => ` ${key}: ${value}`)
267+
.map(([key, value]) => ` ${key}: ${value}`)
268268
.join(',\n');
269269

270-
return ` ${className}: {
271-
typeIds: [Id.Id('${type.id}')],
272-
properties: {
270+
return `${className}: {
271+
typeIds: [Id.Id('${type.id}')],
272+
properties: {
273273
${properties}
274-
},
274+
},
275275
${
276276
relations
277-
? ` relations: {
277+
? ` relations: {
278278
${relations}
279-
},`
279+
},`
280280
: ''
281281
}
282-
}`;
282+
}`;
283283
}
284284

285285
// Function to get all types with their individual schema and mapping

0 commit comments

Comments
 (0)