Migration Field Status Issues
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m1s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-05-08 10:01:02 +07:00
parent c1a4df63e5
commit 2298d4847d
2 changed files with 18 additions and 5 deletions

View file

@ -38,11 +38,11 @@ export class Issues extends EntityBase {
@Column({
type: "enum",
enum: ["NEW", "IN_PROGRESS", "RESOLVED", "CLOSED"],
enum: ["NEW", "IN_PROGRESS", "RESOLVED", "CLOSED", "HELPDESK_IN_PROGRESS", "REPLIED"],
default: "NEW",
comment: "สถานะการแก้ไขปัญหา",
})
status: "NEW" | "IN_PROGRESS" | "RESOLVED" | "CLOSED";
status: "NEW" | "IN_PROGRESS" | "RESOLVED" | "CLOSED" | "HELPDESK_IN_PROGRESS" | "REPLIED";
@BeforeInsert()
async generateCodeIssue() {
@ -77,7 +77,7 @@ export interface IssueResponse {
menu: string | null;
org: string | null;
remark: string | null;
status: "NEW" | "IN_PROGRESS" | "RESOLVED" | "CLOSED";
status: "NEW" | "IN_PROGRESS" | "RESOLVED" | "CLOSED" | "HELPDESK_IN_PROGRESS" | "REPLIED";
createdAt: Date;
lastUpdatedAt: Date;
createdFullName: string;
@ -90,7 +90,7 @@ export interface CreateIssueRequest {
title: string;
description?: string;
system: string;
status?: "NEW" | "IN_PROGRESS" | "RESOLVED" | "CLOSED";
status?: "NEW" | "IN_PROGRESS" | "RESOLVED" | "CLOSED" | "HELPDESK_IN_PROGRESS" | "REPLIED";
menu?: string;
org?: string;
email?: string;
@ -98,6 +98,6 @@ export interface CreateIssueRequest {
}
export interface UpdateIssueRequest {
status?: "NEW" | "IN_PROGRESS" | "RESOLVED" | "CLOSED";
status?: "NEW" | "IN_PROGRESS" | "RESOLVED" | "CLOSED" | "HELPDESK_IN_PROGRESS" | "REPLIED";
remark?: string;
}