Skip to content

Commit

Permalink
remove validation
Browse files Browse the repository at this point in the history
  • Loading branch information
LWangllix committed Oct 8, 2024
1 parent ffc6cc8 commit ac83ead
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions services/fishStockings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ export type FishStocking<
phone: {
type: 'string',
required: false,
pattern: /^(86|\+3706)\d{7}$/,
},
reviewedBy: {
type: 'number',
Expand Down Expand Up @@ -343,7 +342,6 @@ export type FishStocking<
phone: {
type: 'string',
required: true,
pattern: /^(86|\+3706)\d{7}$/,
},
organization: 'string',
},
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit ac83ead

Please sign in to comment.