style(ntfy): fix bracket-spacing lint offenses

This commit is contained in:
Min Zeya Phyo
2026-07-28 02:34:26 +08:00
parent 20927eea5f
commit ac2054e45c
13 changed files with 1502 additions and 70 deletions

View File

@@ -63,7 +63,7 @@ class ApiKey < ApplicationRecord
title: "API key revoked",
message: "API key '#{name}' (#{key_prefix}...) was revoked",
priority: 3,
tags: ["key", "no_entry"])
tags: [ "key", "no_entry" ])
end
# Deactivate expired keys

View File

@@ -45,7 +45,7 @@ class Gateway < ApplicationRecord
title: "Gateway online",
message: "#{name} (#{device_id}) came back online",
priority: 3,
tags: ["white_check_mark"],
tags: [ "white_check_mark" ],
click: nil)
end
end
@@ -60,7 +60,7 @@ class Gateway < ApplicationRecord
title: "Gateway offline",
message: "#{name} (#{device_id}) went offline",
priority: 4,
tags: ["rotating_light"])
tags: [ "rotating_light" ])
end
end

View File

@@ -60,7 +60,7 @@ class SmsMessage < ApplicationRecord
title: "SMS delivered",
message: "Message to #{phone_number} (#{message_id}) was delivered",
priority: 2,
tags: ["white_check_mark"])
tags: [ "white_check_mark" ])
end
# Mark message as failed
@@ -71,7 +71,7 @@ class SmsMessage < ApplicationRecord
title: "SMS failed",
message: "Message to #{phone_number} (#{message_id}) failed#{error_msg ? ": #{error_msg}" : ''}",
priority: 5,
tags: ["x", "rotating_light"])
tags: [ "x", "rotating_light" ])
end
# Increment retry counter