refactor: remove suffix from field

This field does not indicate that it is specific to TH but any locale
This commit is contained in:
Methapon2001 2024-04-04 13:42:46 +07:00
parent 79f844adee
commit cd76812997
4 changed files with 27 additions and 27 deletions

View file

@ -32,9 +32,9 @@ type UserCreate = {
userType: string;
userRole: string;
firstNameTH: string;
firstName: string;
firstNameEN: string;
lastNameTH: string;
lastName: string;
lastNameEN: string;
code: string;
@ -49,7 +49,7 @@ type UserCreate = {
importNationality: string;
trainingPlace: string;
addressTH: string;
address: string;
addressEN: string;
zipCode: string;
email: string;
@ -64,9 +64,9 @@ type UserUpdate = {
userType?: string;
userRole?: string;
firstNameTH?: string;
firstName?: string;
firstNameEN?: string;
lastNameTH?: string;
lastName?: string;
lastNameEN?: string;
code?: string;
@ -81,7 +81,7 @@ type UserUpdate = {
importNationality?: string;
trainingPlace?: string;
addressTH?: string;
address?: string;
addressEN?: string;
zipCode?: string;
email?: string;
@ -110,9 +110,9 @@ export class UserController extends Controller {
) {
const where = {
OR: [
{ firstNameTH: { contains: query }, zipCode, userType },
{ firstName: { contains: query }, zipCode, userType },
{ firstNameEN: { contains: query }, zipCode, userType },
{ lastNameTH: { contains: query }, zipCode, userType },
{ lastName: { contains: query }, zipCode, userType },
{ lastNameEN: { contains: query }, zipCode, userType },
{ email: { contains: query }, zipCode, userType },
{ telephoneNo: { contains: query }, zipCode, userType },