Skip to content

Commit 005ffb2

Browse files
committed
fix: add comments
1 parent c5320ca commit 005ffb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/supabase-cdn/cache-manager/queue-consumer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const logger = new Logger();
1010
const tracer = new Tracer();
1111
const cloudfront = tracer.captureAWSv3Client(new CloudFrontClient({ region: 'us-east-1' }));
1212

13+
/** Create CloudFront invalidation. */
1314
const createInvalidation = async(paths: string[], callerReference: string) => {
1415
const cmd = new CreateInvalidationCommand({
1516
DistributionId: distributionId,
@@ -25,6 +26,7 @@ const createInvalidation = async(paths: string[], callerReference: string) => {
2526
return output;
2627
};
2728

29+
/** Convert webhook event to CloudFront paths. */
2830
const eventToPath = (event: WebhookEvent): string[] => {
2931
const bucketId = event.event.payload.bucketId;
3032
const objectName = event.event.payload.name;

0 commit comments

Comments
 (0)