Updated the id field in the Session.ts model

This commit is contained in:
Mathias Wagner 2023-01-15 20:30:51 +01:00
parent a23f974f43
commit 5b59f674ef
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

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,