Skip to content

Commit

Permalink
Fix message listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinan-96 committed Sep 16, 2024
1 parent bc34a65 commit 5158c69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion app/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export async function getIncNumberByWeek(numberOfDaysAgo) {
export async function getCategoriesArray() {
try {
const result = await client.query("SELECT name FROM categories");
const categories = result.rows.map(row => row.category_name);
const categories = result.rows.map(row => row.name);
console.log("categories", categories);
return categories;
} catch (err) {
Expand Down
5 changes: 0 additions & 5 deletions app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import QuickChart from 'quickchart-js';
const { App, SocketModeReceiver } = pkg;
dotenv.config();

console.log("SLACK_BOT_TOKEN", process.env.SLACK_BOT_TOKEN);
console.log("SLACK_SIGNING_SECRET", process.env.SOCKET_TOKEN);



const app = new App({
token: process.env.SLACK_BOT_TOKEN, // Bot user token
receiver: new SocketModeReceiver({
Expand Down

0 comments on commit 5158c69

Please sign in to comment.