From 023f7e1672b3795abb903c4afc4f9b49a1e33d6f Mon Sep 17 00:00:00 2001
From: Federico Hurtado <fed_home@Federicos-Mac-mini.local>
Date: Wed, 30 Oct 2024 11:49:46 -0400
Subject: [PATCH] Change two small bugs.

---
 backend/config/database/databaseInitializer.js | 10 ++++------
 backend/service/activityLoggerService.js       |  2 +-
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/backend/config/database/databaseInitializer.js b/backend/config/database/databaseInitializer.js
index f38388a..bd39474 100644
--- a/backend/config/database/databaseInitializer.js
+++ b/backend/config/database/databaseInitializer.js
@@ -4,7 +4,7 @@ const {
 } = require("../../repository/rolesPermissionRepository");
 const {
   addStateIfNotExists,
-  checkStateTableExistence,
+  checkTableExistence,
 } = require("../../repository/stateRepository");
 const {
   addInvolvementTypeIfNotExists,
@@ -13,8 +13,8 @@ const {
   checkInvolvementLookupTableExistence,
 } = require("../../repository/involvementRepository");
 const {
-  checkChapterTableExistence, 
-  addChapterIfNotExists
+  checkChapterTableExistence,
+  addChapterIfNotExists,
 } = require("../../repository/chapterRepository");
 
 /*
@@ -84,7 +84,7 @@ class DatabaseInitializer {
   Creates all the states
   */
   async initializeStates() {
-    checkStateTableExistence();
+    checkTableExistence();
 
     const states = [
       "AL",
@@ -370,8 +370,6 @@ class DatabaseInitializer {
     }
   }
 
-
-
   async initializeAll() {
     await this.testDBConnection();
     await this.initializeRoles();
diff --git a/backend/service/activityLoggerService.js b/backend/service/activityLoggerService.js
index 9fa3a89..d570c1c 100644
--- a/backend/service/activityLoggerService.js
+++ b/backend/service/activityLoggerService.js
@@ -17,7 +17,7 @@ async function documentSuccessfulLogin(userId, timestamp) {
   }
 }
 
-async function logDatabaseChange(
+async function documentDatabaseChange(
   tableName,
   recordId,
   userId,
-- 
GitLab