mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 21:29:43 +02:00
Remove unused code and comments
This commit is contained in:
parent
f11fa8d504
commit
75e642cd73
1 changed files with 0 additions and 12 deletions
|
@ -11,7 +11,6 @@ async function sendSlackMessage(messageText) {
|
||||||
|
|
||||||
console.log('Sending to Slack');
|
console.log('Sending to Slack');
|
||||||
|
|
||||||
|
|
||||||
const postData = {
|
const postData = {
|
||||||
blocks: [ {
|
blocks: [ {
|
||||||
type: 'section',
|
type: 'section',
|
||||||
|
@ -23,7 +22,6 @@ async function sendSlackMessage(messageText) {
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Prod path
|
|
||||||
const config = {
|
const config = {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -39,16 +37,6 @@ async function sendSlackMessage(messageText) {
|
||||||
console.error('Error sending to Slack:', error.message);
|
console.error('Error sending to Slack:', error.message);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Testing in dev environment (Brad)
|
|
||||||
/*
|
|
||||||
const response = await axios.post(plankaTestWebhookUrl, postData, {
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
}
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
|
|
||||||
console.log('Slack response:', response.data);
|
console.log('Slack response:', response.data);
|
||||||
return response.data;
|
return response.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue