mirror of https://github.com/zulip/zulip.git
models: Delete unused function get_realm_outgoing_webhook_services_name.
This was implemented as part of some preparatory work for outgoing webhooks, but isn't actually used.
This commit is contained in:
parent
5f3fa2c6b6
commit
d6213c3f82
|
@ -1959,11 +1959,6 @@ class Service(models.Model):
|
|||
return self._interfaces[self.interface]
|
||||
|
||||
|
||||
def get_realm_outgoing_webhook_services_name(realm: Realm) -> List[Any]:
|
||||
return list(Service.objects.filter(
|
||||
user_profile__realm=realm, user_profile__is_bot=True,
|
||||
user_profile__bot_type=UserProfile.OUTGOING_WEBHOOK_BOT).values('name'))
|
||||
|
||||
def get_bot_services(user_profile_id: str) -> List[Service]:
|
||||
return list(Service.objects.filter(user_profile__id=user_profile_id))
|
||||
|
||||
|
|
Loading…
Reference in New Issue