Skip to content

Commit

Permalink
fix: collection and options are optional now (agenda#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll authored Mar 11, 2021
1 parent 4848c3b commit 143af6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/agenda/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const debug = createDebugger("agenda:database");
export const database = function (
this: Agenda,
url: string,
collection: string,
options: MongoClientOptions,
collection?: string,
options?: MongoClientOptions,
cb?: (error: Error, collection: Collection<any> | null) => void
): Agenda | void {
if (!hasMongoProtocol(url)) {
Expand Down

0 comments on commit 143af6d

Please sign in to comment.