Change Mastodon object names
This commit is contained in:
parent
bbcb839125
commit
1eb9455d80
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ from jarvis_core.db.utils import get_now
|
|||
|
||||
|
||||
@JARVIS_INST.register
|
||||
class User(Document):
|
||||
class MastodonUser(Document):
|
||||
"""User object."""
|
||||
|
||||
user_id: int = fields.IntegerField(required=True)
|
||||
|
@ -21,7 +21,7 @@ class User(Document):
|
|||
|
||||
|
||||
@JARVIS_INST.register
|
||||
class UserFollow(Document):
|
||||
class MastodonFollow(Document):
|
||||
"""User Follow object."""
|
||||
|
||||
active: bool = fields.BooleanField(default=True)
|
||||
|
@ -33,4 +33,4 @@ class UserFollow(Document):
|
|||
created_at: datetime = fields.AwareDateTimeField(default=get_now)
|
||||
|
||||
class Meta:
|
||||
collection_name = "mastodonuserfollow"
|
||||
collection_name = "mastodonfollow"
|
||||
|
|
Loading…
Add table
Reference in a new issue