mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-09 16:09:16 -06:00
Fix schema key type
This commit is contained in:
@@ -6,7 +6,7 @@ import { env } from "../../env/server.mjs";
|
||||
|
||||
async function getURLs(
|
||||
type: string,
|
||||
key: string,
|
||||
key: string | number,
|
||||
payload: Map<string, unknown>,
|
||||
): Promise<string[] | null> {
|
||||
if (type == "project_link" || type == "project_technology") {
|
||||
@@ -49,7 +49,7 @@ async function getURLs(
|
||||
|
||||
const requestSchema = z.object({
|
||||
type: z.string(),
|
||||
keys: z.array(z.string()).min(1),
|
||||
keys: z.array(z.string().or(z.number().int())).min(1),
|
||||
source: z.map(z.string(), z.any()),
|
||||
payload: z.map(z.string(), z.any()),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user