Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix: set proper metadata action when an announcement is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
mycodeself committed Dec 3, 2024
1 parent 6dd0bbf commit 879b337
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/announcements-backend/src/service/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
announcementEntityPermissions,
EVENTS_TOPIC_ANNOUNCEMENTS,
EVENTS_ACTION_CREATE_ANNOUNCEMENT,
EVENTS_ACTION_DELETE_ANNOUNCEMENT,
EVENTS_ACTION_UPDATE_ANNOUNCEMENT,
EVENTS_ACTION_CREATE_CATEGORY,
EVENTS_ACTION_DELETE_CATEGORY,
Expand Down Expand Up @@ -161,7 +162,7 @@ export async function createRouter(
eventPayload: {
announcement,
},
metadata: { action: EVENTS_ACTION_DELETE_CATEGORY },
metadata: { action: EVENTS_ACTION_DELETE_ANNOUNCEMENT },
});
}

Expand Down

0 comments on commit 879b337

Please sign in to comment.