@ -24,6 +24,7 @@ services:
- TYPEORM_DATABASE=postgres
- TYPEORM_USERNAME=postgres
- TYPEORM_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV
- TYPEORM_SYNCHRONIZE=true
- MQTT_URL=tcp://mosquitto:1883
# Must specify JWT_SECRET and MQTT_URL
@ -16,6 +16,7 @@ services:
database:
@ -38,7 +38,6 @@ export class Database {
}
async createAll() {
await this.conn.synchronize();
if (process.env.INSERT_TEST_DATA) {
await this.insertData();