@aspan-corporation/ac-shared 1.2.24 → 1.2.25

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.
@@ -10,6 +10,7 @@ type ExtractMetadataParams = {
10
10
  locationService: LocationService;
11
11
  dynamoDBService: DynamoDBService;
12
12
  metaTableName: string;
13
+ placeIndexName: string;
13
14
  size: number;
14
15
  };
15
16
  /**
@@ -19,5 +20,5 @@ type ExtractMetadataParams = {
19
20
  * 4. add all old tags that are not present in new tags,
20
21
  *
21
22
  */
22
- export declare const processMeta: ({ id, meta, metaTableName, size, logger, locationService, dynamoDBService }: ExtractMetadataParams) => Promise<void>;
23
+ export declare const processMeta: ({ id, meta, metaTableName, placeIndexName, size, logger, locationService, dynamoDBService }: ExtractMetadataParams) => Promise<void>;
23
24
  export {};
@@ -7,7 +7,7 @@ import { getKeyExtension } from "./thumbsKey.js";
7
7
  * 4. add all old tags that are not present in new tags,
8
8
  *
9
9
  */
10
- export const processMeta = async ({ id, meta, metaTableName, size, logger, locationService, dynamoDBService }) => {
10
+ export const processMeta = async ({ id, meta, metaTableName, placeIndexName, size, logger, locationService, dynamoDBService }) => {
11
11
  // expand location data
12
12
  const latitude = Number(meta.find((tag) => tag.key === "latitude")?.value);
13
13
  const longitude = Number(meta.find((tag) => tag.key === "longitude")?.value);
@@ -15,7 +15,7 @@ export const processMeta = async ({ id, meta, metaTableName, size, logger, locat
15
15
  if (!Number.isNaN(longitude) && !Number.isNaN(latitude)) {
16
16
  try {
17
17
  const res = await locationService.searchPlaceIndexForPositionCommand({
18
- IndexName: "TauPlaceIndex",
18
+ IndexName: placeIndexName,
19
19
  Position: [longitude, latitude]
20
20
  });
21
21
  if (res?.Results && res?.Results?.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspan-corporation/ac-shared",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "exports": {