Skip to content

Commit

Permalink
Get container name from config
Browse files Browse the repository at this point in the history
  • Loading branch information
kin0992 committed Jan 14, 2025
1 parent cfa7711 commit 629f58b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/to-do-api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ const cosmosClient = new CosmosClient({
});

const db = cosmosClient.database(config.cosmosDb.dbName);
// FIXME: Get container name from config
const taskContainer = db.container("tasks");
const taskContainer = db.container(config.cosmosDb.containers.tasks);

const env = {
taskIdGenerator: makeTaskIdGenerator(),
Expand Down

0 comments on commit 629f58b

Please sign in to comment.