Skip to content

Commit acec66d

Browse files
committed
check attributes
1 parent 17a2cba commit acec66d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/webapp/app/v3/eventRepository/clickhouseEventRepository.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ export class ClickhouseEventRepository implements IEventRepository {
352352
}
353353

354354
private createEventToTaskEventV1InputAttributes(attributes: Attributes): Record<string, unknown> {
355+
if (!attributes) {
356+
return {};
357+
}
358+
355359
const publicAttributes = removePrivateProperties(attributes);
356360

357361
if (!publicAttributes) {

0 commit comments

Comments
 (0)