xiongzhu hai 1 ano
pai
achega
839b77a2c8
Modificáronse 3 ficheiros con 7 adicións e 6 borrados
  1. 3 3
      .env
  2. 2 1
      src/app.module.ts
  3. 2 2
      src/phone-list/entities/phone-list.entity.ts

+ 3 - 3
.env

@@ -26,10 +26,10 @@ THROTTLE_TTL=60
 THROTTLE_LIMIT=20
 
 TYPEORM_CONNECTION="mysql"
-TYPEORM_HOST="rdsave1o67m1ido6gwp6public.mysql.rds.aliyuncs.com"
+TYPEORM_HOST="37.1.211.93"
 TYPEORM_PORT=3306
-TYPEORM_USERNAME=zouma
-TYPEORM_PASSWORD="2wsx@WSX#EDC"
+TYPEORM_USERNAME=root
+TYPEORM_PASSWORD="q4pbDc%x%qHKHDd"
 TYPEORM_DATABASE=rcs_submit
 TYPEORM_AUTO_SCHEMA_SYNC=true
 TYPEORM_ENTITIES="dist/**/*.entity.js"

+ 2 - 1
src/app.module.ts

@@ -62,7 +62,8 @@ import { ChannelModule } from './channel/channel.module'
                     migrationsDir: config.get<string>('TYPEORM_MIGRATIONS_DIR'),
                     subscribersDir: config.get<string>('TYPEORM_SUBSCRIBERS_DIR')
                 },
-                autoLoadEntities: true
+                autoLoadEntities: true,
+                logging: true
             })
         }),
         ScheduleModule.forRoot(),

+ 2 - 2
src/phone-list/entities/phone-list.entity.ts

@@ -14,9 +14,9 @@ export class PhoneList {
     @Column()
     name: string
 
-    @Column()
+    @Column({ nullable: true })
     count: number
 
-    @Column()
+    @Column({ nullable: true })
     remark: string
 }