Skip to content

Commit

Permalink
trigger path-tmpl-worker on doc type update (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur authored Nov 24, 2024
1 parent 7443de3 commit 2fa1f84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions papermerge/core/features/document/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ def update_document_type(
except NoResultFound:
raise HTTPException(status_code=404, detail="Document not found")

send_task(
const.PATH_TMPL_MOVE_DOCUMENT,
kwargs={"document_id": str(document_id), "user_id": str(user.id)},
route_name="path_tmpl",
)


@router.get("/type/{document_type_id}")
@utils.docstring_parameter(scope=scopes.NODE_VIEW)
Expand Down

0 comments on commit 2fa1f84

Please sign in to comment.