Skip to content

Commit

Permalink
add searched_opportunity_ids to create_saved_search
Browse files Browse the repository at this point in the history
  • Loading branch information
babebe committed Jan 28, 2025
1 parent 7506db8 commit 1ddad6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/src/services/users/create_saved_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@

def create_saved_search(db_session: db.Session, user_id: UUID, json_data: dict) -> UserSavedSearch:
saved_search = UserSavedSearch(
user_id=user_id, name=json_data["name"], search_query=json_data["search_query"]
user_id=user_id,
name=json_data["name"],
search_query=json_data["search_query"],
searched_opportunity_ids=[],
)

db_session.add(saved_search)
Expand Down

0 comments on commit 1ddad6e

Please sign in to comment.