Skip to content

Commit f9f8480

Browse files
committed
fix api customFields uniform style
1 parent d9f5c20 commit f9f8480

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

service/src/core/entities/_schemas/entities.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class Entity extends AbstractSchema {
2929
@Prop({
3030
type: Object,
3131
})
32-
public customFields: object
32+
public customFields?: { [key: string]: any }
3333
}
3434

3535
export const EntitySchema = SchemaFactory.createForClass(Entity)

service/src/core/identities/_schemas/identities.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class Identities extends AbstractSchema {
7070
@Prop({
7171
type: Object,
7272
})
73-
public customFields: object
73+
public customFields?: { [key: string]: any }
7474
}
7575

7676
export const IdentitiesSchema = SchemaFactory.createForClass(Identities)

service/src/tickets/sla/_schemas/sla.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Sla extends AbstractSchema {
5959
@Prop({
6060
type: Object,
6161
})
62-
public customFields: object
62+
public customFields?: { [key: string]: any }
6363
}
6464

6565
export const SlaSchema = SchemaFactory.createForClass(Sla)

service/src/tickets/source-request/_schemas/source-request.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class SourceRequest extends AbstractSchema {
5252
@Prop({
5353
type: Object,
5454
})
55-
public customFields: object
55+
public customFields?: { [key: string]: any }
5656
}
5757

5858
export const SourceRequestSchema = SchemaFactory.createForClass(SourceRequest)

service/src/tickets/state/_schemas/state.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class State extends AbstractSchema {
5252
@Prop({
5353
type: Object,
5454
})
55-
public customFields: object
55+
public customFields?: { [key: string]: any }
5656
}
5757

5858
export const StateSchema = SchemaFactory.createForClass(State)

service/src/tickets/thread/_schemas/thread.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class Thread extends AbstractSchema {
4343
@Prop({
4444
type: Object,
4545
})
46-
public customFields: object
46+
public customFields?: { [key: string]: any }
4747
}
4848

4949
export const ThreadSchema = SchemaFactory.createForClass(Thread)

service/src/tickets/ticket/_schemas/ticket.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class Ticket extends AbstractSchema {
103103
@Prop({
104104
type: Object,
105105
})
106-
public customFields: object
106+
public customFields?: { [key: string]: any }
107107
}
108108

109109
export const TicketSchema = SchemaFactory.createForClass(Ticket)

0 commit comments

Comments
 (0)