change selfie with ktp to selfie with setrip tag

This commit is contained in:
2026-05-08 20:02:11 +07:00
parent f5d86d2414
commit ccb3437e82
24 changed files with 127 additions and 84 deletions
+3 -3
View File
@@ -3,11 +3,11 @@ import path from "node:path";
import crypto from "node:crypto";
import { encryptBuffer, decryptBuffer } from "@/lib/crypto";
export type KycKind = "ktp" | "selfie";
export type KycKind = "ktp" | "liveness";
const KIND_DIRS: Record<KycKind, string> = {
ktp: "ktp",
selfie: "selfie",
liveness: "liveness",
};
/** Bytes. ~5MB matches the form limit; raise here if you change the upload route. */
@@ -43,7 +43,7 @@ export type StoredFileMeta = {
};
export function isKycKind(value: string): value is KycKind {
return value === "ktp" || value === "selfie";
return value === "ktp" || value === "liveness";
}
/** Resolve a storage key (`ktp/abc.jpg`) to an absolute path inside the upload dir. Throws on traversal. */