fix: typo
This commit is contained in:
parent
0d6d44f20b
commit
95d4321284
4 changed files with 4 additions and 4 deletions
|
|
@ -475,7 +475,7 @@ export class BranchController extends Controller {
|
||||||
if (body.headOfficeId === branchId)
|
if (body.headOfficeId === branchId)
|
||||||
throw new HttpError(
|
throw new HttpError(
|
||||||
HttpStatus.BAD_REQUEST,
|
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",
|
"cantMakeHQAndBranchSameTime",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ export class FlowTemplateController extends Controller {
|
||||||
if (!userAffiliatedBranch) {
|
if (!userAffiliatedBranch) {
|
||||||
throw new HttpError(
|
throw new HttpError(
|
||||||
HttpStatus.BAD_REQUEST,
|
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",
|
"reqMinAffilatedBranch",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ export type RequestWithUser = Request & {
|
||||||
sub: string;
|
sub: string;
|
||||||
name: string;
|
name: string;
|
||||||
given_name: string;
|
given_name: string;
|
||||||
familiy_name: string;
|
family_name: string;
|
||||||
preferred_username: string;
|
preferred_username: string;
|
||||||
email: string;
|
email: string;
|
||||||
roles: string[];
|
roles: string[];
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ export async function listUser(search = "", page = 1, pageSize = 30) {
|
||||||
/**
|
/**
|
||||||
* Count user in the system. Can be use for pagination purpose.
|
* 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 = "") {
|
export async function countUser(search = "") {
|
||||||
const res = await fetch(
|
const res = await fetch(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue