mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
chore: working on backup api for new storage system.
This commit is contained in:
@@ -6,6 +6,7 @@ import {notificationChannel, NotificationChannelWith} from "@/db/schema/09_notif
|
|||||||
import {desc, isNull} from "drizzle-orm";
|
import {desc, isNull} from "drizzle-orm";
|
||||||
import {ChannelsSection} from "@/components/wrappers/dashboard/admin/channels/channels-section";
|
import {ChannelsSection} from "@/components/wrappers/dashboard/admin/channels/channels-section";
|
||||||
import {ChannelAddEditModal} from "@/components/wrappers/dashboard/admin/channels/channel/channel-add-edit-modal";
|
import {ChannelAddEditModal} from "@/components/wrappers/dashboard/admin/channels/channel/channel-add-edit-modal";
|
||||||
|
import * as drizzleDb from "@/db";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Notification Channels",
|
title: "Notification Channels",
|
||||||
@@ -17,6 +18,7 @@ export default async function RoutePage(props: PageParams<{}>) {
|
|||||||
with: {
|
with: {
|
||||||
organizations: true
|
organizations: true
|
||||||
},
|
},
|
||||||
|
where: isNull(drizzleDb.schemas.notificationChannel.organizationId),
|
||||||
orderBy: desc(notificationChannel.createdAt)
|
orderBy: desc(notificationChannel.createdAt)
|
||||||
}) as NotificationChannelWith[]
|
}) as NotificationChannelWith[]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user