Skip to content

Commit

Permalink
Limit get method to one result
Browse files Browse the repository at this point in the history
  • Loading branch information
DaddyWarbucks committed Feb 28, 2024
1 parent 62bd29f commit cae4204
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export class SequelizeAdapter<

const q: FindOptions = {
where,
limit: 1,
raw: this.raw,
...params.sequelize
};
Expand Down

0 comments on commit cae4204

Please sign in to comment.