Skip to content

Commit

Permalink
remove mssql dependency and files
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Feb 18, 2024
1 parent c725352 commit 143c9eb
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 55 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main_twitch-mz-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
envkey_TWITCH_USER_ID: ${{ secrets.TWITCH_USER_ID }}
envKey_MONGODB_URI: ${{ secrets.MONGODB_URI }}
envKey_AEMET_API_KEY: ${{ secrets.AEMET_API_KEY }}
envKey_SQL_CONNECTION: ${{ secrets.SQL_CONNECTION }}
envkey_PORT: 3000
envkey_TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
envKey_TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
Expand Down
3 changes: 0 additions & 3 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ module.exports = {
aemet: {
apiKey: process.env.AEMET_API_KEY
},
sql : {
connectionString: process.env.SQL_CONNECTION
},
telegram: {
apiKey: process.env.TELEGRAM_TOKEN,
chatId: process.env.TELEGRAM_CHAT_ID
Expand Down
49 changes: 0 additions & 49 deletions helpers/mssqlManager.js

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"moment": "^2.30.1",
"moment-precise-range-plugin": "^1.3.0",
"mongoose": "^8.1.1",
"mssql": "^10.0.2",
"node-cron": "^3.0.3",
"node-telegram-bot-api": "^0.64.0",
"puppeteer-core": "^21.11.0",
Expand Down
2 changes: 1 addition & 1 deletion services/renfe.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const sqlManager = require('../helpers/mariadbManager')
const sqlManager = require('../helpers/mysqlManager')

async function getNextMD (origin, destination) {
return sqlManager.getCloserFutureTrain(origin, destination, 'MD')
Expand Down

0 comments on commit 143c9eb

Please sign in to comment.