chore: update subproject commit reference and modify date handling in Cron service

- Updated the subproject commit reference in epess-database to the latest version.
- Changed the date handling in CronService to allow scheduling up to one day in advance instead of thirty minutes.
- Removed commented-out code in DocumentSchema for improved clarity and maintainability.
This commit is contained in:
2024-12-09 17:20:30 +07:00
parent 56762e98eb
commit 087bf3a3ad
3 changed files with 2 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ export class CronService {
AND: [
{
scheduleStart: {
lt: DateTimeUtils.now().plus({ minutes: 30 }).toJSDate(),
lt: DateTimeUtils.now().plus({ days: 1 }).toJSDate(),
},
},
{

View File

@@ -144,8 +144,6 @@ export class DocumentSchema extends PothosSchema {
if (!userId) {
throw new Error('User not found')
}
// const fileUrl = await this.minio.getFileUrl('document', 'document', 'document')
// if (!fileUrl) throw new Error('File not found')
const document = await this.prisma.document.create({
...query,
data: {