Skip to content

Commit e6b575f

Browse files
committed
changes route name from message to record for better abstraction
1 parent ae8af0f commit e6b575f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/javascript/controllers/better_together/message_visibility_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class extends Controller {
3030
}
3131

3232
markAsRead(messageId) {
33-
fetch(`/en/notifications/mark_message_as_read`, {
33+
fetch(`/en/notifications/mark_record_as_read`, {
3434
method: 'POST',
3535
headers: {
3636
'Content-Type': 'application/json',

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
collection do
5858
post :mark_all_as_read, to: 'notifications#mark_as_read'
59-
post :mark_message_as_read, to: 'notifications#mark_as_read'
59+
post :mark_record_as_read, to: 'notifications#mark_as_read'
6060
end
6161
end
6262

0 commit comments

Comments
 (0)