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