Skip to content

Add event creation route#68

Open
BojayL wants to merge 1 commit into
corecodeio:mainfrom
BojayL:event-route-daily-message
Open

Add event creation route#68
BojayL wants to merge 1 commit into
corecodeio:mainfrom
BojayL:event-route-daily-message

Conversation

@BojayL

@BojayL BojayL commented Jun 19, 2026

Copy link
Copy Markdown

Summary

  • Adds a new authenticated POST /api/event endpoint.
  • Creates Event records for daily message, celebration, and meet events.
  • Creates the matching Google Calendar event in CALENDAR_CELEBRATION_ID.
  • Stores the Google Meet link on meet events.
  • Schedules daily Slack messages through CHANNEL_SLACK_CELEBRATION and saves the Slack timestamp after sending.
  • Adds focused Jest coverage for calendar creation, meet link storage, daily Slack scheduling, and invalid event types.

Fixes #48.

Validation

  • npm --workspace api test -- event.controller.spec.js --runInBand
  • node --check api/src/controllers/eventControllers/createEvent.controller.js
  • node --check api/src/routes/event.router.js

@netlify

netlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

Deploy Preview for incredible-centaur-b58d2c ready!

Name Link
🔨 Latest commit d6f0a43
🔍 Latest deploy log https://app.netlify.com/projects/incredible-centaur-b58d2c/deploys/6a34fa7a49c18a00083476a4
😎 Deploy Preview https://deploy-preview-68--incredible-centaur-b58d2c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creation of route of daily events and sending messages by slack

1 participant