const selectedAppBundles = await db.query.appBundles.findMany({
where: (appBundles, { and, isNull }) => and(isNull(appBundles.deletedAt), isNull(appChannels.deletedAt)),
orderBy: (appBundles, { desc }) => desc(appBundles.createdAt),
offset,
limit,
with: {
appChannel: true,
},
});
const selectedAppBundles = await db.query.appBundles.findMany({
where: (appBundles, { and, isNull }) => and(isNull(appBundles.deletedAt), isNull(appChannels.deletedAt)),
orderBy: (appBundles, { desc }) => desc(appBundles.createdAt),
offset,
limit,
with: {
appChannel: true,
},
});