Skip to content

Commit

Permalink
OV-3: * solve merge conficts
Browse files Browse the repository at this point in the history
  • Loading branch information
JPjok3r committed Aug 24, 2024
1 parent bef91bb commit 3a962ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ const TABLE_NAME = 'users';

async function up(knex: Knex): Promise<void> {
await knex.schema.table(TABLE_NAME, (table) => {
table.string('full_name').notNullable();
table.string('name').notNullable();
});
}

async function down(knex: Knex): Promise<void> {
await knex.schema.table(TABLE_NAME, (table) => {
table.dropColumn('full_name');
table.dropColumn('name');
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const UserValidationMessage = {
WRONG_CREDENTIALS: 'Email or password are incorrect',
USER_IS_NOT_AVAILABLE:
'User with this email already exists. Log in if it is you',
FULL_NAME_INVALID: 'Name must have at least two words',
} as const;

export { UserValidationMessage };
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ const userSignUp = z
.refine((data) => data.password === data.confirmPassword, {
message: UserValidationMessage.PASS_DONT_MATCH,
path: ['confirmPassword'],
})
.refine(
(data) => data.name.split(/\s+/).length >= 2,
{
message: UserValidationMessage.FULL_NAME_INVALID,
path: ['name'],
}
);
});

export { userSignUp };

0 comments on commit 3a962ad

Please sign in to comment.