Skip to content

Commit

Permalink
adapters: add invariant
Browse files Browse the repository at this point in the history
  • Loading branch information
radex committed Apr 21, 2024
1 parent c291792 commit 62f8cd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/adapters/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type DirtyQueryResult = Array<RecordId | DirtyRaw>
export function validateAdapter(adapter: DatabaseAdapter): void {
if (process.env.NODE_ENV !== 'production') {
const { schema, migrations } = adapter
invariant(schema, `Missing schema in the adapter`)
// TODO: uncomment when full migrations are shipped
// invariant(migrations, `Missing migrations`)
if (migrations) {
Expand Down

0 comments on commit 62f8cd4

Please sign in to comment.