Skip to content

Commit

Permalink
fix: notify_user need to accept user not uid (pinterest#1095)
Browse files Browse the repository at this point in the history
* fix: notify_user need to accept user not uid

* remove markdown link
  • Loading branch information
czgu authored Dec 6, 2022
1 parent 676320f commit 8b5b78f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Your scheduled DataDoc [{{ data_doc_title }}]({{ doc_url }}) has been disabled due to the following reason:
Your scheduled DataDoc {{ data_doc_title }} {{ doc_url }} has been disabled due to the following reason:

**{{ disabled_reason }}**

Expand Down
2 changes: 1 addition & 1 deletion querybook/server/tasks/disable_scheduled_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def notify_schedule_owners(notifier: str, tasks_to_disable: list, session):
for possible_owner in possible_owners:
user = get_user_by_id(possible_owner, session=session)
if not user.deleted:
doc_owner = possible_owner
doc_owner = user
break

if doc_owner is None:
Expand Down

0 comments on commit 8b5b78f

Please sign in to comment.