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,