From 5ec100b3bc323a78fb55fb6b6203d220e790d822 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Thu, 29 Jan 2026 20:24:19 +0100 Subject: [PATCH] chore: remove un-used imports --- .../notifications/notifications.service.ts | 15 +++++++++++---- app/server/modules/volumes/volume.service.ts | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/server/modules/notifications/notifications.service.ts b/app/server/modules/notifications/notifications.service.ts index ed777093..e0dd5467 100644 --- a/app/server/modules/notifications/notifications.service.ts +++ b/app/server/modules/notifications/notifications.service.ts @@ -1,4 +1,4 @@ -import { eq, and, ne, inArray } from "drizzle-orm"; +import { eq, and, inArray } from "drizzle-orm"; import { ConflictError, InternalServerError, NotFoundError } from "http-errors-enhanced"; import { db } from "../../db/db"; import { @@ -28,7 +28,10 @@ const listDestinations = async () => { const getDestination = async (id: number) => { const organizationId = getOrganizationId(); const destination = await db.query.notificationDestinationsTable.findFirst({ - where: and(eq(notificationDestinationsTable.id, id), eq(notificationDestinationsTable.organizationId, organizationId)), + where: and( + eq(notificationDestinationsTable.id, id), + eq(notificationDestinationsTable.organizationId, organizationId), + ), }); if (!destination) { @@ -194,7 +197,9 @@ const updateDestination = async ( const [updated] = await db .update(notificationDestinationsTable) .set(updateData) - .where(eq(notificationDestinationsTable.id, id)) + .where( + and(eq(notificationDestinationsTable.id, id), eq(notificationDestinationsTable.organizationId, organizationId)), + ) .returning(); if (!updated) { @@ -209,7 +214,9 @@ const deleteDestination = async (id: number) => { await getDestination(id); await db .delete(notificationDestinationsTable) - .where(and(eq(notificationDestinationsTable.id, id), eq(notificationDestinationsTable.organizationId, organizationId))); + .where( + and(eq(notificationDestinationsTable.id, id), eq(notificationDestinationsTable.organizationId, organizationId)), + ); }; const testDestination = async (id: number) => { diff --git a/app/server/modules/volumes/volume.service.ts b/app/server/modules/volumes/volume.service.ts index 32af879f..73afa37e 100644 --- a/app/server/modules/volumes/volume.service.ts +++ b/app/server/modules/volumes/volume.service.ts @@ -1,8 +1,8 @@ import * as fs from "node:fs/promises"; import * as os from "node:os"; import * as path from "node:path"; -import { and, eq, ne } from "drizzle-orm"; -import { ConflictError, InternalServerError, NotFoundError } from "http-errors-enhanced"; +import { and, eq } from "drizzle-orm"; +import { InternalServerError, NotFoundError } from "http-errors-enhanced"; import { db } from "../../db/db"; import { volumesTable } from "../../db/schema"; import { cryptoUtils } from "../../utils/crypto";