Skip to content

Conversation

@Kuruyia
Copy link
Collaborator

@Kuruyia Kuruyia commented Dec 10, 2023

The following methods were implemented to be used through the message broker:

  • sendMessage : sends a message to the specified message channel, corresponds to the POST /messaging/{messageChannelId}/messages API route
  • findOneChannelOfUserWithEmployer : gets the messaging channel between a seasonworker and an employer, corresponds to the GET /employers/{employerId}/messaging API route
  • sendMessageToEmployer : sends a message to the specified employer, corresponds to the POST /employers/{employerId}/messaging API route

Other changes

An enum has been created to list the possible message directions.

A constraint has been added to the MessageChannel table to ensure that a single (seasonworkerId, employerId) couple exists.

The last message of a channel is now sent when requesting message channels.

@Kuruyia Kuruyia added the enhancement New feature or request label Dec 10, 2023
@Kuruyia Kuruyia self-assigned this Dec 10, 2023
@Kuruyia Kuruyia merged commit 5d1cfee into main Dec 10, 2023
@Kuruyia Kuruyia deleted the feat/messaging-finish branch December 10, 2023 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants