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:
Submodule epess-database updated: fab4b28b98...b691e63e38
@@ -153,7 +153,7 @@ export class CronService {
|
|||||||
AND: [
|
AND: [
|
||||||
{
|
{
|
||||||
scheduleStart: {
|
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) {
|
if (!userId) {
|
||||||
throw new Error('User not found')
|
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({
|
const document = await this.prisma.document.create({
|
||||||
...query,
|
...query,
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
Reference in New Issue
Block a user