Updated the id field in the Session.ts model

This commit is contained in:
2023-01-15 20:30:51 +01:00
parent a23f974f43
commit 5b59f674ef

View File

@@ -2,8 +2,8 @@ import {model, ObjectId, Schema, Types} from "mongoose";
import { fieldEncryption } from "mongoose-field-encryption"; import { fieldEncryption } from "mongoose-field-encryption";
import crypto from "crypto"; import crypto from "crypto";
interface ISession { export interface ISession {
id: ObjectId, _id: ObjectId,
userId: ObjectId, userId: ObjectId,
token: string, token: string,
ip: string, ip: string,