Commit 4823e927 authored by Guillaume Vagner's avatar Guillaume Vagner
Browse files

change name of connection-db to mysql

parent 7f888d54
......@@ -3,7 +3,7 @@
// Modules propres
var bot = require('./telegram');
require('./website');
var { getSchedules } = require('./connection-db');
var { getSchedules } = require('./mysql');
var { addSchedule } = require('./schedule');
// Reboot proof : au démarrage de l'application, recréaction des rappels
......
// CONNECTION-DB : Module de connexion à la base de données et fonctions pour modifier groupes et chans
// MYSQL.JS : Module de connexion à la base de données et fonctions pour modifier groupes et chans
// Modules extérieurs
var mysql = require('promise-mysql');
......
......@@ -4,7 +4,7 @@
const rp = require('request-promise');
// Modules propres
var { modifyChan, getChanByState } = require('./connection-db');
var { modifyChan, getChanByState } = require('./mysql');
// Configurations
const config = require('./config');
......
......@@ -4,7 +4,7 @@
var schedule = require('node-schedule');
// Modules propres
var { modifyChan, getGroups } = require('./connection-db');
var { modifyChan, getGroups } = require('./mysql');
var { getBirthdays, getNewToken } = require('./requests');
// Création de variables
......
......@@ -6,7 +6,7 @@ process.env["NTBA_FIX_319"] = 1;
var TelegramBot = require('node-telegram-bot-api');
// Modules propres
var { getChanByChatId, createChan, deleteChanByChatId, modifyChan, addGroup, removeGroup, removeAllGroups, getGroups } = require('./connection-db');
var { getChanByChatId, createChan, deleteChanByChatId, modifyChan, addGroup, removeGroup, removeAllGroups, getGroups } = require('./mysql');
var { getBirthdays, searchGroups, getGroupById, getMe } = require('./requests');
var { schedules, addSchedule, deleteSchedule } = require('./schedule');
......
......@@ -5,7 +5,7 @@ var app = require('express')();
// Modules propres
var bot = require('./telegram');
var { getChanByState } = require('./connection-db');
var { getChanByState } = require('./mysql');
var { getFirstToken } = require('./requests');
// Configurations
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment