Store image id instead of low/middle/high uri

This commit is contained in:
Zoe Roux
2024-11-08 22:27:58 +01:00
parent 00774230af
commit f53e8e3611
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -1,10 +1,8 @@
import { t } from "elysia";
export const Image = t.Object({
id: t.String({ format: "uuid" }),
source: t.String({ format: "uri" }),
blurhash: t.String(),
low: t.String({ format: "uri" }),
medium: t.String({ format: "uri" }),
high: t.String({ format: "uri" }),
});
export type Image = typeof Image.static;