Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mark message action as seen dto #3084

Merged
merged 3 commits into from
Apr 3, 2023
Merged

Conversation

jainpawan21
Copy link
Member

What change does this PR introduce?

Add MarkMessageActionAsSeenDto

Why was this change needed?

Fixes NV-1180

Other information (Screenshots)

Screenshot 2023-03-27 at 1 54 26 PM

@linear
Copy link

linear bot commented Mar 27, 2023

NV-1180 Swagger is missing the body of /messages/actions/:type

the swagger annotations is missing the body of the request inside our API reference:

https://docs.novu.co/api/mark-message-action-as-seen/

The missing is the body with status and payload fields

Comment on lines 17 to 19
@IsOptional()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
payload: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering that payload is saved as Mixed type in the database, I think we can safely replace the any for a Record<string, unknown> and thus only allow JavaScript object structures.

description: 'Message action payload',
})
@IsOptional()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be removed now

@p-fernandez p-fernandez added this pull request to the merge queue Apr 3, 2023
@p-fernandez p-fernandez removed this pull request from the merge queue due to a manual request Apr 3, 2023
@p-fernandez p-fernandez added this pull request to the merge queue Apr 3, 2023
Merged via the queue into next with commit 56e705c Apr 3, 2023
10 checks passed
@p-fernandez p-fernandez deleted the feature/NV-1180-add-dto branch April 3, 2023 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants