mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(notifications): adjust types
This commit is contained in:
parent
3d348ee762
commit
736c186a66
@ -23,7 +23,6 @@ import {
|
||||
import { findMariadbByBackupId } from "../services/mariadb";
|
||||
import { findMongoByBackupId } from "../services/mongo";
|
||||
import { findMySqlByBackupId } from "../services/mysql";
|
||||
import { sendDatabaseBackupNotifications } from "../services/notification";
|
||||
import { findPostgresByBackupId } from "../services/postgres";
|
||||
|
||||
export const backupRouter = createTRPCRouter({
|
||||
|
@ -17,6 +17,7 @@ import {
|
||||
stopService,
|
||||
} from "@/server/utils/docker/utils";
|
||||
import { recreateDirectory } from "@/server/utils/filesystem/directory";
|
||||
import { sendDockerCleanupNotifications } from "@/server/utils/notifications/docker-cleanup";
|
||||
import { spawnAsync } from "@/server/utils/process/spawnAsync";
|
||||
import {
|
||||
readConfig,
|
||||
@ -35,7 +36,6 @@ import { TRPCError } from "@trpc/server";
|
||||
import { scheduleJob, scheduledJobs } from "node-schedule";
|
||||
import { appRouter } from "../root";
|
||||
import { findAdmin, updateAdmin } from "../services/admin";
|
||||
import { sendDockerCleanupNotifications } from "../services/notification";
|
||||
import {
|
||||
getDokployImage,
|
||||
getDokployVersion,
|
||||
|
@ -48,6 +48,7 @@ export const runMariadbBackup = async (
|
||||
projectName: project.name,
|
||||
databaseType: "mariadb",
|
||||
type: "error",
|
||||
// @ts-ignore
|
||||
errorMessage: error?.message || "Error message not provided",
|
||||
});
|
||||
throw error;
|
||||
|
@ -44,6 +44,7 @@ export const runMongoBackup = async (mongo: Mongo, backup: BackupSchedule) => {
|
||||
projectName: project.name,
|
||||
databaseType: "mongodb",
|
||||
type: "error",
|
||||
// @ts-ignore
|
||||
errorMessage: error?.message || "Error message not provided",
|
||||
});
|
||||
throw error;
|
||||
|
@ -45,6 +45,7 @@ export const runMySqlBackup = async (mysql: MySql, backup: BackupSchedule) => {
|
||||
projectName: project.name,
|
||||
databaseType: "mysql",
|
||||
type: "error",
|
||||
// @ts-ignore
|
||||
errorMessage: error?.message || "Error message not provided",
|
||||
});
|
||||
throw error;
|
||||
|
@ -45,6 +45,7 @@ export const runPostgresBackup = async (
|
||||
projectName: project.name,
|
||||
databaseType: "postgres",
|
||||
type: "error",
|
||||
// @ts-ignore
|
||||
errorMessage: error?.message || "Error message not provided",
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user