Skip to content

Commit dbaf33e

Browse files
committed
Ensure boolean type...
... to not trigger not null constraints.
1 parent 499e084 commit dbaf33e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/actor.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Actor < ApplicationRecord
2626
def self.json_to_attributes(json_object)
2727
{
2828
actor_type: json_object["type"],
29-
discoverable: json_object["discoverable"],
30-
indexable: json_object["indexable"],
29+
discoverable: !!json_object["discoverable"],
30+
indexable: !!json_object["indexable"],
3131
username: json_object["preferredUsername"],
3232
name: json_object["name"],
3333
summary: json_object["summary"]

0 commit comments

Comments
 (0)