mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-18 10:56:38 +00:00
used zod codemod
This commit is contained in:
@@ -9,12 +9,10 @@ import { supporterKey } from "@server/db";
|
||||
import { db } from "@server/db";
|
||||
import config from "@server/lib/config";
|
||||
|
||||
const validateSupporterKeySchema = z
|
||||
.object({
|
||||
const validateSupporterKeySchema = z.strictObject({
|
||||
githubUsername: z.string().nonempty(),
|
||||
key: z.string().nonempty()
|
||||
})
|
||||
.strict();
|
||||
});
|
||||
|
||||
export type ValidateSupporterKeyResponse = {
|
||||
valid: boolean;
|
||||
|
||||
Reference in New Issue
Block a user