Skip to content

Commit

Permalink
Merge pull request #369 from code4romania/fix/347-update-eventless-ac…
Browse files Browse the repository at this point in the history
…tivity-log

fix: 347 - update eventless activity log
  • Loading branch information
radulescuandrew authored Aug 21, 2024
2 parents 31cdf43 + 0041519 commit 7b6549f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class UpdateActivityLogUsecase
if (updates.activityTypeId) {
const taskExists = await this.activityTypeFacade.exists(
[updates.activityTypeId],
{ organizationId: log.event.organization.id },
{ organizationId: log.event?.organization.id || log.organization.id }, // in case the organization doesn't have an event associated with it
);
if (!taskExists) {
this.exceptionService.badRequestException(
Expand Down

0 comments on commit 7b6549f

Please sign in to comment.