forked from zombieb/galvanic-corrosion-rewrite
rooooms are mostly dooone, misc routes, instance management stubs, and matchmaking base
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import z from "zod";
|
||||
import Command from "../commands/command.ts";
|
||||
import { ServerContentBase } from "../ContentBase.ts";
|
||||
import { transformStringToEnum } from "../../util/validators.ts";
|
||||
import { transformCheckEnum, transformStringToEnum } from "../../util/validators.ts";
|
||||
import { sign } from "@hono/hono/jwt";
|
||||
import { CachedLogin, DbCachedLogin, PlatformMask, PlatformType, TokenFormat, TokenType } from "./types.ts";
|
||||
|
||||
@@ -127,7 +127,7 @@ export class PlatformsManager extends ServerContentBase {
|
||||
return await this.getCachedLogins(type, platformId, false);
|
||||
},
|
||||
zod: z.tuple([
|
||||
z.string().transform(transformStringToEnum<PlatformType>(PlatformType)),
|
||||
z.coerce.number().transform(transformCheckEnum<PlatformType>(PlatformType)),
|
||||
z.string().min(4)
|
||||
]),
|
||||
help: 'List all cachedlogins for platformId: <type: PlatformType, platformId: string>'
|
||||
|
||||
Reference in New Issue
Block a user