fix(announcements): added sender
Build and Push Docker image / build-and-push (push) Successful in 4m55s Details

This commit is contained in:
Valentin Kolb 2024-06-17 17:38:55 +02:00
parent 594c780f42
commit 7eb38a1ef7
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ export default function MessageEntriesModal({opened, event, onClose, query}: {
event: EventModel,
query: UseInfiniteQueryResult<InfiniteData<ListResult<EventListSlotEntriesWithUserModel>, unknown>, Error>
}) {
const {pb} = usePB()
const {pb, user} = usePB()
const totalPages = query.data?.pages?.[0].totalPages || 0
const currentPage = query.data?.pages?.length || 0
@ -46,6 +46,7 @@ export default function MessageEntriesModal({opened, event, onClose, query}: {
content: formValues.values.content,
recipients: entries.map(e => e.user),
isAnnouncement: true,
sender: user?.id,
meta: {
event: event.id
}