change selfie with ktp to selfie with setrip tag
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user