Skip to content

Commit

Permalink
alter connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
TuuKeZu committed Aug 16, 2024
1 parent 503c8c8 commit f453099
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion database/plan-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { user, password, host, port, authServer } = require('../secret.json');
const { config } = require('./user-schema');
const { public } = require('./public-api');

const url = `mongodb://${user}:${password}@${host}:${port}/?authMechanism=DEFAULT&authSource=${authServer}`;
const url = `mongodb://${user}:${password}@${host}:${port}/wilma/?authMechanism=DEFAULT&authSource=${authServer}`;

const appendPlanned = (auth, code) => {
return new Promise((resolve, reject) => {
Expand Down
3 changes: 1 addition & 2 deletions database/public-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ const { generateHash } = require('./utility');
const utility = require('./utility');
const { resolve } = require('path');

const url = `mongodb://${user}:${password}@${host}:${port}/?authMechanism=DEFAULT&authSource=${authServer}`;
const url = `mongodb://${user}:${password}@${host}:${port}/wilma?authMechanism=DEFAULT&authSource=${authServer}`;

const wilmaAPI = 'https://wilma.otawilma.fi/api/';
//const wilmaAPI = 'http://localhost:3001/api/';

const currentTray = '2024-2025(Otaniemen lukio, Espoo)'

Expand Down
2 changes: 1 addition & 1 deletion database/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {} = require('./authentication');

const { config } = require('./user-schema');

const url = `mongodb://${user}:${password}@${host}:${port}/?authMechanism=DEFAULT&authSource=${authServer}`;
const url = `mongodb://${user}:${password}@${host}:${port}/wilma?authMechanism=DEFAULT&authSource=${authServer}`;
//const url = `mongodb://127.0.0.1:27017`;

const getTotalUsers = () => {
Expand Down
2 changes: 1 addition & 1 deletion database/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {} = require('./authentication');

const { config } = require('./user-schema');

const url = `mongodb://${user}:${password}@${host}:${port}/?authMechanism=DEFAULT&authSource=${authServer}`;
const url = `mongodb://${user}:${password}@${host}:${port}/wilma?authMechanism=DEFAULT&authSource=${authServer}`;
//const url = `mongodb://127.0.0.1:27017`;

const createTheme = (auth, preset) => {
Expand Down
2 changes: 1 addition & 1 deletion database/user-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { defaultConfig, defaultTheme } = require('./default.json');
const { generate } = require('shortid');
const {} = require('./authentication');

const url = `mongodb://${user}:${password}@${host}:${port}/?authMechanism=DEFAULT&authSource=${authServer}`;
const url = `mongodb://${user}:${password}@${host}:${port}/wilma?authMechanism=DEFAULT&authSource=${authServer}`;
//const url = `mongodb://127.0.0.1:27017`;

const login = (auth) => {
Expand Down

0 comments on commit f453099

Please sign in to comment.