mirror of
https://github.com/hanzoai/dataroom.git
synced 2026-10-30 18:41:07 +00:00
hanzo-build-linux-amd64 is the only ARC runner pool installed on hanzo-k8s today (arm64 pool is paused until DigitalOcean ships arm64 droplets, per ~/work/hanzo/.github/RUNNERS.md). The arm64 job was waiting on spark-hanzoai-arm64 — not provisioned in this cluster — so every build sat in queue forever and the amd64 leg got cancelled. Set platforms: linux/amd64 on the reusable build call to skip arm64 entirely. Re-add arm64 if/when DO ships arm64 droplets and the spark runner pool comes back online.
22 lines
497 B
TypeScript
22 lines
497 B
TypeScript
import prisma from "@/lib/prisma";
|
|
|
|
export const notificationService = {
|
|
// Toggle notifications for a conversation
|
|
async toggleNotificationsForConversation({
|
|
conversationId,
|
|
viewerId,
|
|
enabled,
|
|
}: {
|
|
conversationId: string;
|
|
viewerId: string;
|
|
enabled: boolean;
|
|
}) {
|
|
return prisma.conversationParticipant.update({
|
|
where: {
|
|
conversationId_viewerId: { conversationId, viewerId },
|
|
},
|
|
data: { receiveNotifications: enabled },
|
|
});
|
|
},
|
|
};
|