From e061d85b9909585f5baeb76a74d3399e91972335 Mon Sep 17 00:00:00 2001 From: anshuk Date: Mon, 22 Jan 2024 11:05:34 +0530 Subject: [PATCH] - Version bump to 0.4.4 - Fixed bug #128 --- CHANGELOG | 4 ++++ COMMITMESSAGE.md | 4 ++-- package.json | 2 +- src/config/constants.js | 2 +- src/pages/api/install/go.js | 5 ++--- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 4f0344b..f0620b7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +v0.4.4 +- Version bump to 0.4.4 +- Fixed bug #128 + v0.4.3 - Version bump to 0.4.3 - Fixed flickering in view select menu on Home Page (Combined View) diff --git a/COMMITMESSAGE.md b/COMMITMESSAGE.md index e3a0f21..86d8449 100644 --- a/COMMITMESSAGE.md +++ b/COMMITMESSAGE.md @@ -1,2 +1,2 @@ -- Version bump to 0.4.3 -- Fixed flickering in view select menu on Home Page (Combined View) \ No newline at end of file +- Version bump to 0.4.4 +- Fixed bug #128 \ No newline at end of file diff --git a/package.json b/package.json index 383a5e3..3e5aae8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "manage-my-damn-life-nextjs", - "version": "0.4.3", + "version": "0.4.4", "private": true, "scripts": { "dev": "next dev", diff --git a/src/config/constants.js b/src/config/constants.js index 59db86f..0dedd7c 100644 --- a/src/config/constants.js +++ b/src/config/constants.js @@ -1,4 +1,4 @@ -export const VERSION_NUMBER = "0.4.3" +export const VERSION_NUMBER = "0.4.4" /* * SYSTEM_DEFAULT_LABEL_PREFIX: Default prefix applied to all system generated labels like * "My Day" diff --git a/src/pages/api/install/go.js b/src/pages/api/install/go.js index e868d2e..ff9587c 100644 --- a/src/pages/api/install/go.js +++ b/src/pages/api/install/go.js @@ -2,7 +2,7 @@ import Settings from "@/helpers/api/classes/Settings" import { User } from "@/helpers/api/classes/User" import { getConnectionVar } from "@/helpers/api/db" import { getICS } from "@/helpers/api/ical" -import { FINAL_TABLES, checkifDBExists, createMMDL_DB, getInstallDateFromDB, getListofTables, installTables, isInstalled } from "@/helpers/api/install" +import { FINAL_TABLES, checkifDBExists, createMMDL_DB, getInstallDateFromDB, getListofTables, installTables, isInstalled, testDBConnection } from "@/helpers/api/install" import { middleWareForAuthorisation } from "@/helpers/api/user" import { logVar, varNotEmpty } from "@/helpers/general" import moment from "moment" @@ -16,8 +16,7 @@ export default async function handler(req, res) { // //Test reponse. // return res.status(200).json({ success: true ,data: {message: "ERROR_MMDL_ALREADY_INSTALLED"}}) // } - var con = getConnectionVar() - var err = con.ping() + var err = await testDBConnection() if(varNotEmpty(err)) { res.status(503).json({ success: false ,data: {message: err}})