Skip to content

Commit

Permalink
remove duplicated express require
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Jan 28, 2024
1 parent 765742e commit 18f8e85
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ const mongoose = require('mongoose')
const config = require('./config')
const express = require("express")

mongoose.set('debug', true)
mongoose.connect(config.database).then(() => {
const messenger = new Messenger()
messenger.init()
.then(() => {
console.log('Connected')
const express = require('express')

const app = express();
const listener = app.listen(process.env.PORT, ()=> {
Expand Down

0 comments on commit 18f8e85

Please sign in to comment.