This commit is contained in:
Philipinho
2025-08-01 02:26:14 -07:00
parent 39550fe906
commit ca83712364
2 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
import { Group, Text } from "@mantine/core"; import { Group, Text } from "@mantine/core";
import { CustomAvatar } from "@/components/ui/custom-avatar.tsx"; import { CustomAvatar } from "@/components/ui/custom-avatar.tsx";
import React from "react"; import React from "react";
import { User } from "server/dist/database/types/entity.types"; import { IUser } from '@/features/user/types/user.types.ts';
interface UserInfoProps { interface UserInfoProps {
user: User; user: Partial<IUser>;
size?: string; size?: string;
} }
export function UserInfo({ user, size }: UserInfoProps) { export function UserInfo({ user, size }: UserInfoProps) {

View File

@ -19,7 +19,7 @@ export class TrashCleanupService {
@Interval('trash-cleanup', 24 * 60 * 60 * 1000) // every 24 hours @Interval('trash-cleanup', 24 * 60 * 60 * 1000) // every 24 hours
async cleanupOldTrash() { async cleanupOldTrash() {
try { try {
this.logger.log('Starting trash cleanup job'); this.logger.debug('Starting trash cleanup job');
const retentionDate = new Date(); const retentionDate = new Date();
retentionDate.setDate(retentionDate.getDate() - this.RETENTION_DAYS); retentionDate.setDate(retentionDate.getDate() - this.RETENTION_DAYS);