Skip to content

Commit

Permalink
fix: a couple type tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
travis committed Oct 5, 2023
1 parent 491856f commit 2ce30e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions upload-api/tables/delegations.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
QueryCommand,
BatchWriteItemCommand,
DescribeTableCommand,
UpdateItemCommand,
} from '@aws-sdk/client-dynamodb'
import { marshall, unmarshall } from '@aws-sdk/util-dynamodb'
// eslint-disable-next-line no-unused-vars
Expand Down Expand Up @@ -45,16 +44,17 @@ const DELEGATIONS_FIND_DEFAULT_LIMIT = 1000
* @param {import('../types').DelegationsBucket} deps.bucket
* @param {import('../types').InvocationBucket} deps.invocationBucket
* @param {import('../types').WorkflowBucket} deps.workflowBucket
* @param {import('../types').RevocationsTable} deps.revocationsTable
* @param {object} [options]
* @param {string} [options.endpoint]
*/
export function createDelegationsTable (region, tableName, { bucket, invocationBucket, workflowBucket }, options = {}) {
export function createDelegationsTable (region, tableName, { bucket, invocationBucket, workflowBucket, revocationsTable }, options = {}) {
const dynamoDb = new DynamoDBClient({
region,
endpoint: options.endpoint,
})

return useDelegationsTable(dynamoDb, tableName, { bucket, invocationBucket, workflowBucket })
return useDelegationsTable(dynamoDb, tableName, { bucket, invocationBucket, workflowBucket, revocationsTable })
}

/**
Expand Down
2 changes: 1 addition & 1 deletion upload-api/tables/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const rateLimitTableProps = {
}

/**
* Track delegations.
* Track revocations.
*
* This table is designed to be batch-GET-queried by delegation CIDs,
* (which means the primary key MUST be just the delegation CID) but needs to accomodate
Expand Down

0 comments on commit 2ce30e6

Please sign in to comment.