@wrcb/cb-common 1.0.774 → 1.0.776

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.
@@ -21,8 +21,8 @@ const requireRightApiVersion = (req, res, next) => {
21
21
  throw new Error('TenantDataUndefined');
22
22
  }
23
23
  const backendApiVersion = tenantData.BACKEND_API_VERSION;
24
- const appVersion = req.headers['x-app-version'];
25
- if (appVersion && appVersion !== backendApiVersion) {
24
+ const apiVersion = req.headers['x-api-version'];
25
+ if (apiVersion && apiVersion !== backendApiVersion) {
26
26
  throw new wrongAppVersionError_1.WrongAppVersionError('AppUpdateRequired');
27
27
  }
28
28
  next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.774",
3
+ "version": "1.0.776",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",