From addc98156909ca6edac05cf331fb25d9729c0a8b Mon Sep 17 00:00:00 2001 From: Ben Silverman Date: Wed, 29 Jul 2020 17:38:27 -0400 Subject: [PATCH] Fix TypeORM error on login Fixes #32 --- src/pages/api/auth/[...nextauth].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/auth/[...nextauth].js b/src/pages/api/auth/[...nextauth].js index b482c2a5..8ccba8a9 100644 --- a/src/pages/api/auth/[...nextauth].js +++ b/src/pages/api/auth/[...nextauth].js @@ -31,7 +31,7 @@ const options = { adapter: Adapters.TypeORM.Adapter(process.env.MONGODB_URI, { - models: { + customModels: { User: Models.User, }, }),