Skip to content

Commit

Permalink
fix(typegoose): update mongoose version check for 8.2.4
Browse files Browse the repository at this point in the history
forgot to do it in f1e3dc7
  • Loading branch information
hasezoey committed Apr 2, 2024
1 parent 2adc9d1 commit f197dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typegoose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import {
if (typeof process !== 'undefined' && !isNullOrUndefined(process?.version) && !isNullOrUndefined(mongoose?.version)) {
// for usage on client side
/* istanbul ignore next */
if (semver.lt(mongoose?.version, '8.2.0')) {
throw new Error(`Please use mongoose 8.2.0 or higher (Current mongoose: ${mongoose.version}) [E001]`);
if (semver.lt(mongoose?.version, '8.2.4')) {
throw new Error(`Please use mongoose 8.2.4 or higher (Current mongoose: ${mongoose.version}) [E001]`);
}

/* istanbul ignore next */
Expand Down

0 comments on commit f197dbe

Please sign in to comment.