diff --git a/backend/config/database/databaseInitializer.js b/backend/config/database/databaseInitializer.js index f38388a33d8887dccd6b3097dc408ef9f40884d9..bd39474d5ade54a061f514d1272f320692ed5ccb 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 9fa3a89b4a3b22ec7d12a49ac14dbe23ba50fa66..d570c1c6524bcc1da21faac0b4b7b70af83c77d9 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,