Skip to content

Commit

Permalink
feat: trigger audit from sqs message
Browse files Browse the repository at this point in the history
  • Loading branch information
alinarublea committed Oct 12, 2023
1 parent 0e6b031 commit 85be73d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ async function run(request, context) {
baseUrl: process.env.PAGESPEED_API_BASE_URL,
});

const uuid = Date.now().toString();
const site = {
id: uuid,
id: message.siteId,
githubURL: message.githubURL,
domain: message.domain,
path: message.path,
isLive: message.isLive,
updatedAt: uuid,
};
const auditResult = await psiClient.runAudit(`https://${site.domain}/${site.path}`);
await db.saveAuditIndex(site, auditResult);
Expand Down

0 comments on commit 85be73d

Please sign in to comment.