@crowdin/app-project-module 0.39.0 → 0.39.1

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.
@@ -14,9 +14,9 @@ const util_1 = require("../util");
14
14
  function handle() {
15
15
  return (0, util_1.runAsyncWrapper)((req, res) => __awaiter(this, void 0, void 0, function* () {
16
16
  var _a;
17
- let userTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
18
- if (req.crowdinContext.jwtPayload.context.user_id) {
19
- userTimezone = (yield req.crowdinApiClient.usersApi.getUserInfo(req.crowdinContext.jwtPayload.context.user_id)).data.timezone;
17
+ let userTimezone = (yield req.crowdinApiClient.usersApi.getAuthenticatedUser()).data.timezone;
18
+ if (!userTimezone) {
19
+ userTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
20
20
  }
21
21
  req.logInfo(`Loading user errors for crowdinId ${req.crowdinContext.crowdinId} and integrationId ${req.crowdinContext.clientId}`);
22
22
  const userErrors = (_a = (yield (0, storage_1.getStorage)().getAllUserErrors(req.crowdinContext.crowdinId, req.crowdinContext.clientId))) === null || _a === void 0 ? void 0 : _a.map((userError) => {
@@ -174,7 +174,7 @@
174
174
  }
175
175
 
176
176
  #user-errors-table {
177
- margin-top: 24px;
177
+ margin-bottom: 12px;
178
178
  display: block;
179
179
  }
180
180