Skip to content

Commit

Permalink
[recnet-api] Fix slack message bug (#365)
Browse files Browse the repository at this point in the history
## Description

<!--- Describe your changes in detail -->
There's a "false" prefix in slack template. Remove it.

![Screenshot 2024-11-26 at 10 16
25 PM](https://github.com/user-attachments/assets/76d56de7-a4a1-4e99-937d-45599a31d624)

## Related Issue

<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->
<!--- Please link to the issue here: -->

## Notes

<!-- Other thing to say -->


## Test

<!--- Please describe in detail how you tested your changes locally. -->

## Screenshots (if appropriate):

<!--- Add screenshots of your changes here -->


## TODO

- [ ] Clear `console.log` or `console.error` for debug usage
- [ ] Update the documentation `recnet-docs` if needed
  • Loading branch information
swh00tw authored Dec 2, 2024
2 parents 2252601 + d28e288 commit fa96085
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const weeklyDigestSlackTemplate = (

const messageBlocks = BlockCollection(
Blocks.Header({
text: `${nodeEnv !== "production" && "[DEV] "}📬 Your Weekly Digest for ${formatDate(cutoff)}`,
text: `${nodeEnv !== "production" ? "[DEV] " : ""}📬 Your Weekly Digest for ${formatDate(cutoff)}`,
}),
Blocks.Section({
text: `You have ${Md.bold(`${recs.length}`)} recommendations this week!`,
Expand Down

0 comments on commit fa96085

Please sign in to comment.