Skip to content

Commit

Permalink
fix: Wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
aerotoad committed Jul 27, 2023
1 parent fd5d28d commit 1269d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/nebra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class Nebra {
}

async collection<T = any>(name: string): Promise<Collection<T>> {
async collection<T = Record<any, any>>(name: string): Promise<Collection<T>> {
try {
const exists = await this._knex.schema.hasTable(name);
if (exists) {
Expand Down

0 comments on commit 1269d61

Please sign in to comment.