From 4d8ea943a90e9f547fe17379f10ab2ec60d5392e Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 5 Apr 2024 10:44:13 +0700 Subject: [PATCH] feat: status input on created and update --- src/controllers/branch/branch-controller.ts | 2 ++ src/controllers/user-controller.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/controllers/branch/branch-controller.ts b/src/controllers/branch/branch-controller.ts index 79af679..8d30d10 100644 --- a/src/controllers/branch/branch-controller.ts +++ b/src/controllers/branch/branch-controller.ts @@ -21,6 +21,7 @@ import { RequestWithUser } from "../../interfaces/user"; type BranchCreate = { code?: string; + status?: Status; taxNo: string; nameEN: string; name: string; @@ -40,6 +41,7 @@ type BranchCreate = { type BranchUpdate = { code?: string; + status?: "ACTIVE" | "INACTIVE"; taxNo?: string; nameEN?: string; name?: string; diff --git a/src/controllers/user-controller.ts b/src/controllers/user-controller.ts index c0fe6be..1863c21 100644 --- a/src/controllers/user-controller.ts +++ b/src/controllers/user-controller.ts @@ -27,6 +27,8 @@ if (!process.env.MINIO_BUCKET) { const MINIO_BUCKET = process.env.MINIO_BUCKET; type UserCreate = { + status?: Status; + keycloakId: string; userType: string; @@ -61,6 +63,8 @@ type UserCreate = { }; type UserUpdate = { + status?: "ACTIVE" | "INACTIVE"; + userType?: string; userRole?: string;