Updated the id field in the Session.ts model
This commit is contained in:
parent
a23f974f43
commit
5b59f674ef
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user