fix: include filters on feed table
This commit is contained in:
parent
5323009fd8
commit
db5178fef0
@ -141,7 +141,7 @@ const columnDefs: ConfigColumnDefs[] = [
|
||||
orderable: false,
|
||||
searchable: false,
|
||||
className: "size-px whitespace-nowrap",
|
||||
render: (data: string) => { return `
|
||||
render: (data: prisma.Filter[]) => { return `
|
||||
<div class="px-6 py-4">
|
||||
<span class="cj-table-text">
|
||||
${data}
|
||||
|
@ -83,8 +83,8 @@ export const datatable = async (request: Request, response: Response) => {
|
||||
response,
|
||||
prisma.feed,
|
||||
{ id: "asc" },
|
||||
{ channels: true },
|
||||
{ guild_id: request.params.guildId }
|
||||
{ channels: true, filters: true },
|
||||
{ guild_id: request.params.guildId } // TODO: verify authenticated user can access this guild
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user