We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aac5d4d commit 433a683Copy full SHA for 433a683
src/resolvers/user.ts
@@ -147,7 +147,7 @@ export default {
147
148
try {
149
const newPassword = await UserModel.generatePassword();
150
- console.log(newPassword);
+
151
await user.changePassword(newPassword);
152
153
await emailNotification({
@@ -225,7 +225,7 @@ export default {
225
{ user, factories }: ResolverContextWithUser
226
): Promise<boolean> {
227
const foundUser = await factories.usersFactory.findById(user.id);
228
229
if (!foundUser) {
230
throw new ApolloError('There is no user with such id');
231
}
0 commit comments