@bytebrand/export-cars 1.22.30 → 1.22.31

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/export-cars",
3
- "version": "1.22.30",
3
+ "version": "1.22.31",
4
4
  "description": "",
5
5
  "author": "bytebrand",
6
6
  "license": "UNLICENSED",
@@ -6,4 +6,4 @@ export const DEFAULT_CITY = 'Sandersdorf-Brehna';
6
6
  export const DEFAULT_ADDR1 = 'Max-Planck-Str. 19';
7
7
  export const TIMESTAMP_FIRST_YEAR = 1970;
8
8
  export const META_PUSH_PRIORITY_STANDARD = 'standard';
9
- export const META_PUSH_PRIORITY_ALLOWED_VALUES = ['user_priority_1', 'user_priority_2'];
9
+ export const META_PUSH_PRIORITY_ALLOWED_VALUES = ['dealer_priority_1', 'dealer_priority_2'];
@@ -7,7 +7,7 @@ export interface DealersMapping {
7
7
  }
8
8
 
9
9
  export interface MetaPushPriorityMapping {
10
- user_id: string;
10
+ dealer_id: string;
11
11
  meta_push_priority: string;
12
12
  comment?: string;
13
13
  }
@@ -166,7 +166,7 @@ export class FbTransformer {
166
166
 
167
167
  private async getMetaPushPriority(ownerId: string): Promise<string> {
168
168
  const priorities = await this.mappingService.getMetaPushPriorityMapping();
169
- const entry = priorities.find(priority => priority.user_id === ownerId);
169
+ const entry = priorities.find(priority => priority.dealer_id === ownerId);
170
170
  const value = get(entry, 'meta_push_priority', '');
171
171
  return includes(META_PUSH_PRIORITY_ALLOWED_VALUES, value) ? value : META_PUSH_PRIORITY_STANDARD;
172
172
  }