From cc57dfcafe68478fc84589e7f54a05ef464f46e3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 14 Sep 2020 20:07:19 +0300 Subject: chore: update which-types --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index c28c048..5818324 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3243,9 +3243,9 @@ } }, "which-types": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/which-types/-/which-types-1.6.1.tgz", - "integrity": "sha512-uTCrp6+rbU48kyT9Z6upVo9CgGmiR50zFSwzDik8slE8oZ+0FC9SBEfJlfgADX/rFJVbIe8Vxsw4BsSxlL5Lsw==" + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/which-types/-/which-types-1.6.2.tgz", + "integrity": "sha512-+OAaJtZsqJab9YohByErzVqxWTsl/JvZ6AVpz7a0WrPEQHapv0aoA0RZIu1zrfSBFhAQLSJmw4fyvfqUvViO5g==" }, "word-wrap": { "version": "1.2.3", diff --git a/package.json b/package.json index 2a7ecf3..786bba1 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "ts-node": "^8.10.2", "typescript": "^3.9.5", "uuid": "^8.3.0", - "which-types": "^1.6.1" + "which-types": "^1.6.2" }, "repository": { "type": "git", -- cgit v1.2.3 From 8784f3ce54fd2361af4d3b2b71d43aa543884c93 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 14 Sep 2020 20:07:39 +0300 Subject: feat: add description field to Poll model --- models/polls/poll.schema.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/polls/poll.schema.ts b/models/polls/poll.schema.ts index 3a57c28..dc52c12 100644 --- a/models/polls/poll.schema.ts +++ b/models/polls/poll.schema.ts @@ -11,6 +11,7 @@ export interface PollSchema extends Document { }; createdAt: Date; authorId: string; + description: string; vote: (userId: string, which: 'left' | 'right') => PollSchema; } @@ -26,6 +27,7 @@ export const pollSchema = new Schema({ authorId: { type: Types.ObjectId, ref: 'User' - } + }, + description: String }, { timestamps: true }); -- cgit v1.2.3