Skip to content
Snippets Groups Projects
Commit 023f7e16 authored by Federico Hurtado's avatar Federico Hurtado
Browse files

Change two small bugs.

parent 380a131f
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ const { ...@@ -4,7 +4,7 @@ const {
} = require("../../repository/rolesPermissionRepository"); } = require("../../repository/rolesPermissionRepository");
const { const {
addStateIfNotExists, addStateIfNotExists,
checkStateTableExistence, checkTableExistence,
} = require("../../repository/stateRepository"); } = require("../../repository/stateRepository");
const { const {
addInvolvementTypeIfNotExists, addInvolvementTypeIfNotExists,
...@@ -13,8 +13,8 @@ const { ...@@ -13,8 +13,8 @@ const {
checkInvolvementLookupTableExistence, checkInvolvementLookupTableExistence,
} = require("../../repository/involvementRepository"); } = require("../../repository/involvementRepository");
const { const {
checkChapterTableExistence, checkChapterTableExistence,
addChapterIfNotExists addChapterIfNotExists,
} = require("../../repository/chapterRepository"); } = require("../../repository/chapterRepository");
/* /*
...@@ -84,7 +84,7 @@ class DatabaseInitializer { ...@@ -84,7 +84,7 @@ class DatabaseInitializer {
Creates all the states Creates all the states
*/ */
async initializeStates() { async initializeStates() {
checkStateTableExistence(); checkTableExistence();
const states = [ const states = [
"AL", "AL",
...@@ -370,8 +370,6 @@ class DatabaseInitializer { ...@@ -370,8 +370,6 @@ class DatabaseInitializer {
} }
} }
async initializeAll() { async initializeAll() {
await this.testDBConnection(); await this.testDBConnection();
await this.initializeRoles(); await this.initializeRoles();
......
...@@ -17,7 +17,7 @@ async function documentSuccessfulLogin(userId, timestamp) { ...@@ -17,7 +17,7 @@ async function documentSuccessfulLogin(userId, timestamp) {
} }
} }
async function logDatabaseChange( async function documentDatabaseChange(
tableName, tableName,
recordId, recordId,
userId, userId,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment