Skip to content

Commit

Permalink
Merge branch 'initial-setup' of github.com:adobe-rnd/spacecat-audit-w…
Browse files Browse the repository at this point in the history
…orker into initial-setup
  • Loading branch information
alinarublea committed Oct 18, 2023
2 parents 643f2ea + 16bbfec commit bce63db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
* governing permissions and limitations under the License.
*/
import secrets from '@adobe/helix-shared-secrets';
import SQSQueue from './sqs-queue.js';
import wrap from '@adobe/helix-shared-wrap';
import { logger } from '@adobe/helix-universal-logger';
import { helixStatus } from '@adobe/helix-status';
import SQSQueue from './sqs-queue.js';
import DB from './db.js'; // Assuming the exported content of './db' is default exported
import PSIClient from './psi-client.js'; // Assuming the exported content of './psi-client' is default exported

Expand All @@ -28,7 +28,7 @@ async function run(request, context) {
region: process.env.REGION,
});
const sqsQueue = SQSQueue();
const message = JSON.parse(context.invocation.event.Records[0].body);
const { message } = JSON.parse(context.invocation.event.Records[0].body);

const psiClient = PSIClient({
apiKey: process.env.PAGESPEED_API_KEY,
Expand Down

0 comments on commit bce63db

Please sign in to comment.