Skip to content

Commit

Permalink
docs(mikro-orm): fix defaultEntities not spreaded (nextauthjs#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland authored Dec 3, 2021
1 parent 79f5a83 commit 8370e3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/adapters/mikro-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ import { Options } from "@mikro-orm/core";
import { defaultEntities } from "@next-auth/mikro-orm-adapter"

const config: Options = {
dbName: "./db.sqlite",
type: "sqlite",
entities: [VeryImportantEntity, Object.values(defaultEntities)],
debug: process.env.NODE_ENV === "development",
...
entities: [VeryImportantEntity, ...Object.values(defaultEntities)],
};

export default config;
Expand Down

0 comments on commit 8370e3b

Please sign in to comment.