From 5b59f674efbbe2e9ee91cd88f9e25a2f2a42ff58 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 15 Jan 2023 20:30:51 +0100 Subject: [PATCH] Updated the id field in the Session.ts model --- src/models/Session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/Session.ts b/src/models/Session.ts index fffee5b..30e40f5 100644 --- a/src/models/Session.ts +++ b/src/models/Session.ts @@ -2,8 +2,8 @@ import {model, ObjectId, Schema, Types} from "mongoose"; import { fieldEncryption } from "mongoose-field-encryption"; import crypto from "crypto"; -interface ISession { - id: ObjectId, +export interface ISession { + _id: ObjectId, userId: ObjectId, token: string, ip: string,