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:
@@ -153,7 +153,7 @@ export class CronService {
|
||||
AND: [
|
||||
{
|
||||
scheduleStart: {
|
||||
lt: DateTimeUtils.now().plus({ minutes: 30 }).toJSDate(),
|
||||
lt: DateTimeUtils.now().plus({ days: 1 }).toJSDate(),
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user