Skip to content

Commit

Permalink
chore: fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jun 12, 2020
1 parent f54bcc6 commit 081bde7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frourio/src/buildServerFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const run = async (config: Config) => {
)
}
let connection: Connection | null = null
let connection: Connection
if (config.typeorm) {
connection = await createConnection({
Expand All @@ -66,7 +66,7 @@ export const run = async (config: Config) => {
return new Promise<{
app: Express
server: Server
connection: typeof connection
connection?: Connection
}>(resolve => {
const server = app.listen(config.port, () => {
console.log(\`Frourio is running on http://localhost:\${config.port}\`)
Expand Down

0 comments on commit 081bde7

Please sign in to comment.