Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maulik9898 committed May 12, 2022
1 parent 4dbb9e5 commit d4f1c1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ services:
- db
ports:
- "3000:3000"
- "1883:2883"
- "1883:1883"
- "5555:5555"
environment:
DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres?schema=public"
PORT: 3000
ADMIN_EMAIL: maulikp163@gmail.com
ADMIN_EMAIL: test@gmail.com
ADMIN_PASSWORD: 1234
JWT_SECRET: ABCDEF
MQTTPORT: 1883
Expand Down
4 changes: 1 addition & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ main()
console.error(e)
process.exit(1)
})
.finally(async () => {
await prisma.$disconnect()
})


prisma.client.deleteMany({}).catch((err) => {
console.log(err)
Expand Down
2 changes: 0 additions & 2 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ export async function main(){
role: Role.ADMIN
}
})
console.log(user)

}

0 comments on commit d4f1c1f

Please sign in to comment.