Skip to content

Commit

Permalink
fix: bugs for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dzehnder committed Oct 16, 2023
1 parent c4a567b commit 16bbfec
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 16bbfec

Please sign in to comment.