Skip to content

Commit

Permalink
solved the ts error fron any type
Browse files Browse the repository at this point in the history
  • Loading branch information
samuko-things committed Feb 25, 2025
1 parent 9b0814d commit d37ed63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion @server/@api-trash/trash.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ import mongoose from 'mongoose';

import dotenv from 'dotenv';
import dotenvExpand from 'dotenv-expand';
import { CollabocateInstanceDocument } from '@collabocate/instance.model';

const dotEnv = dotenv.config();
dotenvExpand.expand(dotEnv);

export const EXPIRATION_IN_SEC = Number(process.env.TRASH_LIFETIME_IN_DAYS)*24*60*60 || 7*24*60*60; // defaults to 7 days (in sec)

type TrashedDocumentType = CollabocateInstanceDocument

export interface TrashDocument extends mongoose.Document {
_id?: string;
collectionName: string;
trashedDocument: any;
trashedDocument: TrashedDocumentType;
trashedAt: Date;
toBeDeletedAt: Date;
trashLifetime?: number;
Expand Down

0 comments on commit d37ed63

Please sign in to comment.