mirror of
https://github.com/CaramelFur/Picsur.git
synced 2026-05-07 02:17:29 +02:00
change images to use ids instead of hashes
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import { z } from 'zod';
|
||||
import { SHA256Regex } from '../util/common-regex';
|
||||
import { IsEntityID } from '../validators/entity-id.validator';
|
||||
|
||||
export const EImageSchema = z.object({
|
||||
id: IsEntityID().optional(),
|
||||
hash: z.string().regex(SHA256Regex),
|
||||
id: IsEntityID(),
|
||||
data: z.undefined(),
|
||||
mime: z.string(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user