Skip to content

Commit

Permalink
feat: init db wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
alinarublea committed Oct 19, 2023
1 parent a4a362d commit e673748
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* governing permissions and limitations under the License.
*/
import secrets from '@adobe/helix-shared-secrets';
import { log } from './util.js';
import wrap from '@adobe/helix-shared-wrap';
import { logger } from '@adobe/helix-universal-logger';
import { helixStatus } from '@adobe/helix-status';
Expand All @@ -28,7 +29,7 @@ async function run(request, context) {
__ow_dynamodb: db,
} = context;
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 e673748

Please sign in to comment.