@lenne.tech/nest-server 10.2.1 → 10.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.2",
|
|
4
4
|
"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).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -114,7 +114,9 @@ export abstract class CoreUserService<
|
|
|
114
114
|
return this.process(
|
|
115
115
|
async () => {
|
|
116
116
|
// Update and return user
|
|
117
|
-
return await
|
|
117
|
+
return await this.mainDbModel
|
|
118
|
+
.updateOne({ _id: dbObject.id }, { verified: true, verifiedAt: new Date() }, { returnDocument: 'after' })
|
|
119
|
+
.exec();
|
|
118
120
|
},
|
|
119
121
|
{ dbObject, serviceOptions },
|
|
120
122
|
);
|