We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae0711e commit 077cd59Copy full SHA for 077cd59
src/libs/next-auth/adapter/index.ts
@@ -145,13 +145,9 @@ export function LobeNextAuthDbAdapter(serverDB: NeonDatabase<typeof schema>): Ad
145
},
146
147
async getUser(id): Promise<AdapterUser | null> {
148
- try {
149
- const lobeUser = await UserModel.findById(id);
150
- if (!lobeUser) return null;
151
- return mapLobeUserToAdapterUser(lobeUser);
152
- } catch {
153
- return null;
154
- }
+ const lobeUser = await UserModel.findById(id);
+ if (!lobeUser) return null;
+ return mapLobeUserToAdapterUser(lobeUser);
155
156
157
async getUserByAccount(account): Promise<AdapterUser | null> {
0 commit comments