Skip to content

Commit ebc82ce

Browse files
committed
querier caching logic change
1 parent ab2eb50 commit ebc82ce

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [unreleased]
1010

11+
## [0.22.1] - 2024-06-10
12+
- Remove `user_context` being `None` check in querier delete function to make it consistent with other non GET functions
13+
1114
## [0.22.0] - 2024-06-05
1215
- Adds caching per API based on user context.
1316

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
setup(
8585
name="supertokens_python",
86-
version="0.22.0",
86+
version="0.22.1",
8787
author="SuperTokens",
8888
license="Apache 2.0",
8989
author_email="[email protected]",

supertokens_python/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from __future__ import annotations
1515

1616
SUPPORTED_CDI_VERSIONS = ["3.0"]
17-
VERSION = "0.22.0"
17+
VERSION = "0.22.1"
1818
TELEMETRY = "/telemetry"
1919
USER_COUNT = "/users/count"
2020
USER_DELETE = "/user/remove"

supertokens_python/querier.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ async def send_delete_request(
337337
params: Union[Dict[str, Any], None],
338338
user_context: Union[Dict[str, Any], None],
339339
) -> Dict[str, Any]:
340-
if user_context is not None:
341-
self.invalidate_core_call_cache(user_context)
340+
self.invalidate_core_call_cache(user_context)
342341
if params is None:
343342
params = {}
344343

0 commit comments

Comments
 (0)