Skip to content

Commit

Permalink
fixed initial migration
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhakim2902 committed Dec 15, 2021
1 parent 8b3fd73 commit 487df44
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/migrations/0.0.0.migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ export class MigrationScript000 implements MigrationScript {
user.createdAt = new Date().toString();
user.updatedAt = new Date().toString();

user.username =
user.username ??
user.name.replace(/\s+/g, '').toLowerCase() +
'.' +
Math.random().toString(36).substr(2, 9);

return this.userRepository.create(user);
}),
);
Expand Down

0 comments on commit 487df44

Please sign in to comment.