-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new env variable that uses the new granular permissions for Zoo…
…m. (#681) Add Zoom deauthorization webhook Pipe the secrets in from secret manager
- Loading branch information
1 parent
d71ecef
commit 9594102
Showing
8 changed files
with
282 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from sqlalchemy.orm import Session | ||
|
||
from appointment.database import repo, models | ||
from appointment.database.models import ExternalConnectionType | ||
|
||
|
||
def disconnect(db: Session, subscriber_id: int, type_id: str) -> bool: | ||
"""Disconnects a zoom external connection from a given subscriber id and zoom type id""" | ||
repo.external_connection.delete_by_type(db, subscriber_id, ExternalConnectionType.zoom, type_id) | ||
schedules = repo.schedule.get_by_subscriber(db, subscriber_id) | ||
for schedule in schedules: | ||
if schedule.meeting_link_provider == models.MeetingLinkProviderType.zoom: | ||
schedule.meeting_link_provider = models.MeetingLinkProviderType.none | ||
db.add(schedule) | ||
db.commit() | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters