api port type is string

This commit is contained in:
tmshv committed 2020-02-23 03:13:09 +03:00
1 parent 11d628fd50
commit df7169a6d2
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ import * as page from './controllers/page'
import * as image from './controllers/image'
async function main() {
const port = parseInt(process.env.PORT, 10) || 3000
const port = process.env.PORT || '3000'
const mongoUri = process.env.MONGO_URI
try {