From 487df440fec1f909e210f83287400ed90396aea7 Mon Sep 17 00:00:00 2001 From: abdulhakim2902 Date: Wed, 15 Dec 2021 11:44:46 +0700 Subject: [PATCH] fixed initial migration --- src/migrations/0.0.0.migration.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/migrations/0.0.0.migration.ts b/src/migrations/0.0.0.migration.ts index c7fb35e4f..90b7efc37 100644 --- a/src/migrations/0.0.0.migration.ts +++ b/src/migrations/0.0.0.migration.ts @@ -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); }), );