Skip to content

Commit

Permalink
Merge pull request #339 from lenneTech/develop
Browse files Browse the repository at this point in the history
Release 10.2.2
  • Loading branch information
kaihaase authored Dec 1, 2023
2 parents 1172e3c + c447843 commit 55d4e51
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lenne.tech/nest-server",
"version": "10.2.1",
"version": "10.2.2",
"description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
"keywords": [
"node",
Expand Down
2 changes: 1 addition & 1 deletion spectaql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ servers:
info:
title: lT Nest Server
description: Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).
version: 10.2.1
version: 10.2.2
contact:
name: lenne.Tech GmbH
url: https://lenne.tech
Expand Down
4 changes: 3 additions & 1 deletion src/core/modules/user/core-user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export abstract class CoreUserService<
return this.process(
async () => {
// Update and return user
return await assignPlain(dbObject, { verified: true, verifiedAt: new Date() }).save();
return await this.mainDbModel
.updateOne({ _id: dbObject.id }, { verified: true, verifiedAt: new Date() }, { returnDocument: 'after' })
.exec();
},
{ dbObject, serviceOptions },
);
Expand Down

0 comments on commit 55d4e51

Please sign in to comment.