refactor(ocp): moved printers to there own folder to keep everything clean

This commit is contained in:
2025-03-25 13:39:39 -05:00
parent 9e9a56cbb1
commit 030f9f9aac
4 changed files with 12 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
import { db } from "../../../../database/dbclient.js";
import { tryCatch } from "../../../globalUtils/tryCatch.js";
import { printers } from "../../../../database/schema/printers.js";
import { db } from "../../../../../database/dbclient.js";
import { tryCatch } from "../../../../globalUtils/tryCatch.js";
import { printers } from "../../../../../database/schema/printers.js";
export const getPrinters = async () => {
const currentTime = new Date(Date.now());

View File

@@ -1,12 +1,12 @@
import { db } from "../../../../database/dbclient.js";
import { tryCatch } from "../../../globalUtils/tryCatch.js";
import { printers } from "../../../../database/schema/printers.js";
import { settings } from "../../../../database/schema/settings.js";
import { printers } from "../../../../../database/schema/printers.js";
import axios from "axios";
import { lstAuth } from "../../../index.js";
import { prodEndpointCreation } from "../../../globalUtils/createUrl.js";
import { createLog } from "../../logger/logger.js";
import { sql } from "drizzle-orm";
import { prodEndpointCreation } from "../../../../globalUtils/createUrl.js";
import { tryCatch } from "../../../../globalUtils/tryCatch.js";
import { lstAuth } from "../../../../index.js";
import { db } from "../../../../../database/dbclient.js";
import { createLog } from "../../../logger/logger.js";
export const updatePrinters = async () => {
const currentTime = new Date(Date.now());

View File

@@ -2,7 +2,7 @@
import { createRoute, OpenAPIHono, z } from "@hono/zod-openapi";
import { responses } from "../../../../globalUtils/routeDefs/responses.js";
import { tryCatch } from "../../../../globalUtils/tryCatch.js";
import { getPrinters } from "../../controller/getPrinters.js";
import { getPrinters } from "../../controller/printers/getPrinters.js";
const app = new OpenAPIHono({ strict: false });
const CreateLog = z.object({

View File

@@ -2,8 +2,7 @@
import { createRoute, OpenAPIHono, z } from "@hono/zod-openapi";
import { responses } from "../../../../globalUtils/routeDefs/responses.js";
import { tryCatch } from "../../../../globalUtils/tryCatch.js";
import { getPrinters } from "../../controller/getPrinters.js";
import { updatePrinters } from "../../controller/updatePrinters.js";
import { updatePrinters } from "../../controller/printers/updatePrinters.js";
const app = new OpenAPIHono({ strict: false });
const CreateLog = z.object({