diff --git a/db/knex_migrations/2023-10-05-1200-add-disable-url-to-notification.js b/db/knex_migrations/2023-10-05-1200-add-disable-url-to-notification.js index 391a614e7..36107d69b 100644 --- a/db/knex_migrations/2023-10-05-1200-add-disable-url-to-notification.js +++ b/db/knex_migrations/2023-10-05-1200-add-disable-url-to-notification.js @@ -1,11 +1,11 @@ -exports.up = function(knex) { - return knex.schema.alterTable("notification", function(table) { - table.boolean("disable_url").defaultTo(false).notNullable().comment("Disable URL in Discord notifications"); +exports.up = function (knex) { + return knex.schema.alterTable("notification", function (table) { + table.boolean("disableUrl").defaultTo(false).notNullable().comment("Disable URL in Discord notifications"); }); }; -exports.down = function(knex) { - return knex.schema.alterTable("notification", function(table) { - table.dropColumn("disable_url"); +exports.down = function (knex) { + return knex.schema.alterTable("notification", function (table) { + table.dropColumn("disableUrl"); }); }; diff --git a/server/server.js b/server/server.js index 90918eae9..17c8f6375 100644 --- a/server/server.js +++ b/server/server.js @@ -330,7 +330,7 @@ let needSetup = false; // Get notification app.get("/notification/:id", async (req, res) => { try { - const notification = await R.findOne("notification", " id = ? ", [req.params.id]); + const notification = await R.findOne("notification", " id = ? ", [ req.params.id ]); res.json({ disableUrl: notification.disableUrl, });