mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-25 16:12:34 +02:00
fix
This commit is contained in:
parent
5b20133eb4
commit
eecb8c809e
2 changed files with 7 additions and 7 deletions
|
@ -1,11 +1,11 @@
|
||||||
exports.up = function(knex) {
|
exports.up = function (knex) {
|
||||||
return knex.schema.alterTable("notification", function(table) {
|
return knex.schema.alterTable("notification", function (table) {
|
||||||
table.boolean("disable_url").defaultTo(false).notNullable().comment("Disable URL in Discord notifications");
|
table.boolean("disableUrl").defaultTo(false).notNullable().comment("Disable URL in Discord notifications");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.down = function(knex) {
|
exports.down = function (knex) {
|
||||||
return knex.schema.alterTable("notification", function(table) {
|
return knex.schema.alterTable("notification", function (table) {
|
||||||
table.dropColumn("disable_url");
|
table.dropColumn("disableUrl");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -330,7 +330,7 @@ let needSetup = false;
|
||||||
// Get notification
|
// Get notification
|
||||||
app.get("/notification/:id", async (req, res) => {
|
app.get("/notification/:id", async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const notification = await R.findOne("notification", " id = ? ", [req.params.id]);
|
const notification = await R.findOne("notification", " id = ? ", [ req.params.id ]);
|
||||||
res.json({
|
res.json({
|
||||||
disableUrl: notification.disableUrl,
|
disableUrl: notification.disableUrl,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue