changed lengths
parent
5df021d4d2
commit
9f851cc180
|
@ -15,7 +15,6 @@ import {
|
||||||
import User from "../models/user";
|
import User from "../models/user";
|
||||||
import { Roles } from "../utils/constants";
|
import { Roles } from "../utils/constants";
|
||||||
import Store from "../models/store";
|
import Store from "../models/store";
|
||||||
import axios from "axios";
|
|
||||||
|
|
||||||
export async function AddEmployee(req: Request, res: Response) {
|
export async function AddEmployee(req: Request, res: Response) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -4,7 +4,7 @@ const router = express.Router();
|
||||||
import * as storeServicesController from "../controllers/storeServicesController";
|
import * as storeServicesController from "../controllers/storeServicesController";
|
||||||
|
|
||||||
router.get("/:storeId", storeServicesController.GetStoreServices);
|
router.get("/:storeId", storeServicesController.GetStoreServices);
|
||||||
router.post("/", storeServicesController.CreateStoreService);
|
router.post("/service", storeServicesController.CreateStoreService);
|
||||||
router.post("/update", storeServicesController.UpdateStoreService);
|
router.post("/update", storeServicesController.UpdateStoreService);
|
||||||
router.post("/activity", storeServicesController.CreateStoreServiceActivity);
|
router.post("/activity", storeServicesController.CreateStoreServiceActivity);
|
||||||
router.get(
|
router.get(
|
||||||
|
|
|
@ -16,10 +16,10 @@ export const USER_ID_LENGTH = 36;
|
||||||
export const HEADER_X_AUTHORIZATION: string = "x-authorization";
|
export const HEADER_X_AUTHORIZATION: string = "x-authorization";
|
||||||
|
|
||||||
export const STORE_SERVICE_MIN_LENGTH = 3;
|
export const STORE_SERVICE_MIN_LENGTH = 3;
|
||||||
export const STORE_SERVICE_MAX_LENGTH = 32;
|
export const STORE_SERVICE_MAX_LENGTH = 64;
|
||||||
|
|
||||||
export const STORE_SERVICE_ACTIVITY_NAME_MIN_LENGTH = 3;
|
export const STORE_SERVICE_ACTIVITY_NAME_MIN_LENGTH = 3;
|
||||||
export const STORE_SERVICE_ACTIVITY_NAME_MAX_LENGTH = 32;
|
export const STORE_SERVICE_ACTIVITY_NAME_MAX_LENGTH = 64;
|
||||||
|
|
||||||
export const STORE_SERVICE_ACTIVITY_DESCRIPTION_MIN_LENGTH = 3;
|
export const STORE_SERVICE_ACTIVITY_DESCRIPTION_MIN_LENGTH = 3;
|
||||||
export const STORE_SERVICE_ACTIVITY_DESCRIPTION_MAX_LENGTH = 1024;
|
export const STORE_SERVICE_ACTIVITY_DESCRIPTION_MAX_LENGTH = 1024;
|
||||||
|
|
|
@ -46,7 +46,6 @@ export async function isAccountNameValid(accountName: string) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (existingUser) {
|
if (existingUser) {
|
||||||
logger.debug("User already exists with this accountName: %s", accountName);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue