fix(announcements): added sender
Build and Push Docker image / build-and-push (push) Successful in 4m55s
Details
Build and Push Docker image / build-and-push (push) Successful in 4m55s
Details
This commit is contained in:
parent
594c780f42
commit
7eb38a1ef7
|
@ -17,7 +17,7 @@ export default function MessageEntriesModal({opened, event, onClose, query}: {
|
||||||
event: EventModel,
|
event: EventModel,
|
||||||
query: UseInfiniteQueryResult<InfiniteData<ListResult<EventListSlotEntriesWithUserModel>, unknown>, Error>
|
query: UseInfiniteQueryResult<InfiniteData<ListResult<EventListSlotEntriesWithUserModel>, unknown>, Error>
|
||||||
}) {
|
}) {
|
||||||
const {pb} = usePB()
|
const {pb, user} = usePB()
|
||||||
|
|
||||||
const totalPages = query.data?.pages?.[0].totalPages || 0
|
const totalPages = query.data?.pages?.[0].totalPages || 0
|
||||||
const currentPage = query.data?.pages?.length || 0
|
const currentPage = query.data?.pages?.length || 0
|
||||||
|
@ -46,6 +46,7 @@ export default function MessageEntriesModal({opened, event, onClose, query}: {
|
||||||
content: formValues.values.content,
|
content: formValues.values.content,
|
||||||
recipients: entries.map(e => e.user),
|
recipients: entries.map(e => e.user),
|
||||||
isAnnouncement: true,
|
isAnnouncement: true,
|
||||||
|
sender: user?.id,
|
||||||
meta: {
|
meta: {
|
||||||
event: event.id
|
event: event.id
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue