mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
refactoring
This commit is contained in:
parent
759254d954
commit
62177078c2
1 changed files with 3 additions and 3 deletions
|
@ -30,9 +30,9 @@ module Repp
|
|||
|
||||
data = @notification.as_json(only: %i[id text attached_obj_id attached_obj_type])
|
||||
|
||||
default_count = 200
|
||||
|
||||
message = "Command completed successfully. The total notifications are #{records.count}. Returns only #{@notification.count}. Limit by default is #{limit}. To change the amount of data returned, use the parameters limit and offset in url."
|
||||
message = 'Command completed successfully.'\
|
||||
" Returning #{@notification.count} out of #{records.count}."\
|
||||
' Use URL parameters :limit and :offset to list other messages if needed.'
|
||||
render_success(data: data, message: message)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue