From ac83eadb933a4fdab1af8b4c3f993e31a821656b Mon Sep 17 00:00:00 2001 From: LWangllix Date: Tue, 8 Oct 2024 15:43:21 +0300 Subject: [PATCH] remove validation --- services/fishStockings.service.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/services/fishStockings.service.ts b/services/fishStockings.service.ts index 4dcdd7f..48ec38b 100644 --- a/services/fishStockings.service.ts +++ b/services/fishStockings.service.ts @@ -245,7 +245,6 @@ export type FishStocking< phone: { type: 'string', required: false, - pattern: /^(86|\+3706)\d{7}$/, }, reviewedBy: { type: 'number', @@ -343,7 +342,6 @@ export type FishStocking< phone: { type: 'string', required: true, - pattern: /^(86|\+3706)\d{7}$/, }, organization: 'string', }, @@ -469,7 +467,6 @@ export default class FishStockingsService extends moleculer.Service { // TODO: freelancer might not have phone number and currently it is not required for freelancer to enter phone number in FishStocking registration form. type: 'string', optional: true, - pattern: /^(86|\+3706)\d{7}$/, }, waybillNo: 'string|optional', veterinaryApprovalNo: 'string|optional', @@ -640,7 +637,6 @@ export default class FishStockingsService extends moleculer.Service { // TODO: freelancer might not have phone number and currently it is not required for freelancer to enter phone number in FishStocking registration form. type: 'string', optional: true, - pattern: /^(86|\+3706)\d{7}$/, }, assignedTo: 'number|integer|convert', location: { @@ -745,7 +741,6 @@ export default class FishStockingsService extends moleculer.Service { // TODO: freelancer might not have phone number and currently it is not required for freelancer to enter phone number in FishStocking registration form. type: 'string', optional: true, - pattern: /^(86|\+3706)\d{7}$/, }, assignedTo: { type: 'number',