Skip to content

Commit

Permalink
fix(typo): use Déconnexion instead of Deconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkerloch committed Oct 19, 2023
1 parent 4f97b22 commit 0ae5212
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/js/base/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ module.exports = class Base {
*
* @function
* @name disconnect
* @description Déconnection à la base pgRouting
* @description Déconnexion à la base pgRouting
*
*/
async disconnect() {

try {

LOGGER.info("Deconnection de la base...");
LOGGER.info("Déconnexion de la base...");

if (this._pool) {

await this._pool.end(() => {
LOGGER.info("Deconnection du pool effectuee");
LOGGER.info("Déconnexion du pool effectuee");
});

this._connected = false;
Expand Down
2 changes: 1 addition & 1 deletion src/js/service/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ module.exports = class Service {
*/
async disconnectSources() {

LOGGER.info("Déonnexion des sources du service...");
LOGGER.info("Déconnexion des sources du service...");

// Connexion des sources
if (!(await this._sourceManager.disconnectAllSources())) {
Expand Down
8 changes: 4 additions & 4 deletions src/js/sources/pgrSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,24 +171,24 @@ module.exports = class pgrSource extends Source {
*
* @function
* @name disconnect
* @description Déconnection à la base pgRouting
* @description Déconnexion à la base pgRouting
*
*/
async disconnect() {

LOGGER.info("Tentative de deconnection de la base...");
LOGGER.info("Tentative de déconnexion de la base...");

if (this._base.connected) {

try {

await this._base.disconnect();
LOGGER.info("Deconnection de la base effectuee");
LOGGER.info("Déconnexion de la base effectuee");
this._connected = false;

} catch(err) {

LOGGER.error('deconnection error', err.stack);
LOGGER.error('disconnection error', err.stack);
throw errorManager.createError("Cannot disconnect to source database");

}
Expand Down
6 changes: 3 additions & 3 deletions src/js/sources/sourceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ module.exports = class sourceManager {
*/
async disconnectSource(sourceId) {

LOGGER.info("Déconnection de la source: " + sourceId);
LOGGER.info("Déconnexion de la source: " + sourceId);

try {

Expand Down Expand Up @@ -1088,7 +1088,7 @@ module.exports = class sourceManager {
*/
async disconnectAllSources() {

LOGGER.info("Déconnection de l'ensemble des sources...");
LOGGER.info("Déconnexion de l'ensemble des sources...");

if (this._loadedSourceId.length === 0) {
LOGGER.warn("Aucune source n'est disponible");
Expand Down Expand Up @@ -1123,7 +1123,7 @@ module.exports = class sourceManager {

}

LOGGER.info("Les déconnections se sont bien déroulés.");
LOGGER.info("Les déconnexions se sont bien déroulés.");

if (nbSourceDisconnected === 0) {
LOGGER.error("Aucune source n'a pu être déconnectée");
Expand Down
2 changes: 1 addition & 1 deletion src/js/sources/valhallaSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = class valhallaSource extends Source {
*
* @function
* @name disconnect
* @description Déconnection
* @description Déconnexion
*
*/
async disconnect() {
Expand Down

0 comments on commit 0ae5212

Please sign in to comment.