Skip to content

feat(notification): update notice validators and http requests #129

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

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Create email all task with full check up mode
### Create multiply (batch) notices
POST http://127.0.0.1:8001/ms/notification
Accept: application/json
Content-Type: application/json
Expand Down
19 changes: 19 additions & 0 deletions http-requests/notification/notice/endpoints/update.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Update notice (view)
POST http://127.0.0.1:8001/ms/notification
Accept: application/json
Content-Type: application/json

{
"id": "1",
"method": "notice.update",
"params": {
"fields": {
"isViewed": true
},
"query": {
"where": {
"id": "4beace43-5231-400d-b0cf-40bc07cabe2a"
}
}
}
}
1 change: 1 addition & 0 deletions microservices/notification/src/entities/notice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Notice {
@Column({ type: 'uuid', default: null })
@Length(1, 36)
@IsUndefinable()
@IsNullable()
taskId: string | null;

@Column({ type: 'varchar' })
Expand Down