fix: typo

This commit is contained in:
Methapon Metanipat 2024-10-29 16:01:13 +07:00
parent 0d6d44f20b
commit 95d4321284
4 changed files with 4 additions and 4 deletions

View file

@ -475,7 +475,7 @@ export class BranchController extends Controller {
if (body.headOfficeId === branchId)
throw new HttpError(
HttpStatus.BAD_REQUEST,
"Cannot make this as headquaters and branch at the same time.",
"Cannot make this as headquarters and branch at the same time.",
"cantMakeHQAndBranchSameTime",
);

View file

@ -120,7 +120,7 @@ export class FlowTemplateController extends Controller {
if (!userAffiliatedBranch) {
throw new HttpError(
HttpStatus.BAD_REQUEST,
"You must be affilated with at least one branch or specifiy branch to be registered (System permission required).",
"You must be affilated with at least one branch or specify branch to be registered (System permission required).",
"reqMinAffilatedBranch",
);
}

View file

@ -5,7 +5,7 @@ export type RequestWithUser = Request & {
sub: string;
name: string;
given_name: string;
familiy_name: string;
family_name: string;
preferred_username: string;
email: string;
roles: string[];

View file

@ -94,7 +94,7 @@ export async function listUser(search = "", page = 1, pageSize = 30) {
/**
* Count user in the system. Can be use for pagination purpose.
*
* @returns numer of user on success.
* @returns user count on success.
*/
export async function countUser(search = "") {
const res = await fetch(