Skip to content

Commit

Permalink
Merge pull request #70 from AplinkosMinisterija/remove-phone-validation
Browse files Browse the repository at this point in the history
remove validation
  • Loading branch information
LWangllix authored Oct 8, 2024
2 parents ffc6cc8 + ac83ead commit 3b34194
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 3b34194

Please sign in to comment.