Skip to content

Commit 0f47a60

Browse files
committed
Convert server to typescript
This was just a rename and one potential type conversion error.
1 parent cc9c6db commit 0f47a60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/server.js renamed to test/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ app.use('/avatars', avatarsRoutes);
1717
const listen = (port) => {
1818
app.listen(port, function () {
1919
const { address } = this.address();
20-
// eslint-disable-next-line no-console
2120
console.log(`[Adorable Avatars] Running at: http://${address}:${port}`.green);
2221
});
2322
};
2423

25-
const port = process.env.PORT || 3002;
24+
const port = Number(process.env.PORT) || 3002;
2625

2726
if (port > 3002) {
2827
listen(port);

0 commit comments

Comments
 (0)