Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 662d89b

Browse files
AuHauAlan Shaw
and
Alan Shaw
committed
fix: update src/utils.js
Co-Authored-By: Alan Shaw <[email protected]>
1 parent 93e0c86 commit 662d89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ exports.getDatastoreAndOptions = function getDatastoreAndOptions (options, key,
3131
exports.containsIrreversibleMigration = function containsIrreversibleMigration (from, to, migrations) {
3232
return migrations
3333
.filter(migration => migration.version > from && migration.version <= to)
34-
.find(migration => migration.revert === undefined) !== undefined
34+
.some(migration => migration.revert === undefined)
3535
}

0 commit comments

Comments
 (0)