internal 1.0.116__py3-none-any.whl → 1.0.117__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

internal/base_factory.py CHANGED
@@ -108,13 +108,6 @@ class BaseFactory(metaclass=ABCMeta):
108
108
  debug=self.get_app_config().DEBUG, version=self.API_VERSION, lifespan=lifespan, docs_url=None,
109
109
  redoc_url=None)
110
110
 
111
-
112
- app.add_middleware(
113
- CorrelationIdMiddleware,
114
- header_name=CORRELATION_ID_HEADER_KEY_NAME,
115
- update_request_header=True
116
- )
117
-
118
111
  origins = ["*"]
119
112
 
120
113
  app.add_middleware(
@@ -136,6 +129,12 @@ class BaseFactory(metaclass=ABCMeta):
136
129
  if self.get_app_config().LOGGER_REQUEST_ENABLE:
137
130
  app.add_middleware(LogRequestMiddleware, logger=app.state.logger)
138
131
 
132
+ app.add_middleware(
133
+ CorrelationIdMiddleware,
134
+ header_name=CORRELATION_ID_HEADER_KEY_NAME,
135
+ update_request_header=True
136
+ )
137
+
139
138
  mongodb = database.MongoDB(self.get_app_config().DATABASE_USERNAME, self.get_app_config().DATABASE_PASSWORD,
140
139
  self.get_app_config().DATABASE_HOST, self.get_app_config().DATABASE_PORT,
141
140
  self.get_app_config().DATABASE_NAME,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: internal
3
- Version: 1.0.116
3
+ Version: 1.0.117
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -1,6 +1,6 @@
1
1
  internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  internal/base_config.py,sha256=CtGIJhMSYsJQxvfkr5rZxuuXpGUY9RYyAf-p8MDv2pM,2142
3
- internal/base_factory.py,sha256=Kzvw8zeHTNzK_ehBdCXxRWjMBPAbxFThCNQeB0ri0io,11309
3
+ internal/base_factory.py,sha256=cbTSCanCM7Yo64hqfEZNA67L3oOV3GgCKRMKdHgCVsA,11308
4
4
  internal/cache_redis.py,sha256=YMsrUXHd-wKjsjsboD79Y-ciBBowzT6aAjdJZ36-yEY,697
5
5
  internal/common_enum/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  internal/common_enum/contact_type.py,sha256=7QkTQ71UxpaT1YHI40FpjmLz3r-UbRU-sd0m5ajH1as,142
@@ -32,6 +32,6 @@ internal/model/base_model.py,sha256=NWjysNOp2MfXvAHGFqaQA_l8ZfTFvJbXQPUPuOXN_2g,
32
32
  internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
33
33
  internal/utils.py,sha256=i6YZdiXsiWnOjRdlJ6afNCGpyMe3Uo9mhm3xlQBy3Ls,2824
34
34
  internal/validator_utils.py,sha256=5ZLcNIgw1hvkYOj1f6gS9AYxe7Y3ufW9FyDxUS7FsMQ,1226
35
- internal-1.0.116.dist-info/METADATA,sha256=EwLu9f7IUH4oESEy7VXu-JvBYQMicvNis4Ib8g82ABc,809
36
- internal-1.0.116.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
37
- internal-1.0.116.dist-info/RECORD,,
35
+ internal-1.0.117.dist-info/METADATA,sha256=Vjt46gI3h_EA28JRjGJYFMDRKgiHXwID20NC8ghJmWQ,809
36
+ internal-1.0.117.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
37
+ internal-1.0.117.dist-info/RECORD,,