chore: clean config

This commit is contained in:
2026-01-22 15:30:31 +01:00
parent cdfc99991d
commit 4dcc8f4e03
6 changed files with 26 additions and 160 deletions

View File

@@ -1,3 +0,0 @@
import { db } from "@platform/database";
export async function createTransaction() {}

View File

@@ -28,6 +28,7 @@ const MIME_MAP = {
| such as the MIME type.
|
*/
const RawImageSchema = z.strictObject({
_id: z.uuid().describe("Primary identifier of the image"),
@@ -59,6 +60,7 @@ const RawImageSchema = z.strictObject({
| format. No extra keys are permitted.
|
*/
export const ImageSchema = RawImageSchema.transform((data) => ({
...data,
mime: mimeForFormat(data.format),