Skip to content

Commit

Permalink
all crud command now pass user token payload to command
Browse files Browse the repository at this point in the history
  • Loading branch information
douwevandermeij committed Nov 15, 2024
1 parent 2b5c196 commit 34f6070
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fractal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Fractal is a scaffolding toolkit for building SOLID logic for your Python applications."""

__version__ = "5.3.0"
__version__ = "5.3.1"

from abc import ABC

Expand Down
3 changes: 3 additions & 0 deletions fractal/contrib/fastapi/routers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def add_entity(
entity=_entity,
user_id=str(kwargs.get("uid")),
specification=specification,
**kwargs,
)

def update_entity(
Expand Down Expand Up @@ -199,6 +200,7 @@ def update_entity(
entity=_entity,
user_id=str(kwargs.get("uid")),
specification=specification,
**kwargs,
)

def delete_entity(
Expand All @@ -213,6 +215,7 @@ def delete_entity(
user_id=str(kwargs.get("uid")),
account_id=str(kwargs.get("account")),
specification=specification,
**kwargs,
)
return {}

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fractal-toolkit"
version = "5.3.0"
version = "5.3.1"
description = "Fractal is a scaffolding toolkit for building SOLID logic for your Python applications."
authors = ["Douwe van der Meij <[email protected]>"]

Expand Down

0 comments on commit 34f6070

Please sign in to comment.