rez_core 2.2.189 → 2.2.190

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.2.189",
3
+ "version": "2.2.190",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -1,27 +1,26 @@
1
1
  import {
2
+ BadRequestException,
2
3
  Body,
3
4
  Controller,
4
5
  Get,
6
+ HttpCode,
7
+ HttpStatus,
5
8
  Param,
9
+ ParseIntPipe,
6
10
  Post,
7
11
  Put,
8
- Delete,
9
- ParseIntPipe,
10
- HttpStatus,
11
- HttpCode,
12
12
  Query,
13
- BadRequestException,
14
13
  } from '@nestjs/common';
15
14
  import { CommunicationService } from '../service/communication.service';
16
15
  import { SendGridApiStrategy } from '../strategies/email/sendgrid-api.strategy';
17
16
  import {
17
+ BulkMessageDto,
18
18
  CreateConfigDto,
19
- UpdateConfigStatusDto,
20
19
  GenericSendMessageDto,
21
- BulkMessageDto,
22
20
  GmailOAuthInitDto,
23
21
  OutlookOAuthInitDto,
24
22
  SendGridVerifiedSendersDto,
23
+ UpdateConfigStatusDto,
25
24
  } from '../dto/create-config.dto';
26
25
 
27
26
  export class ScheduledMessageDto extends GenericSendMessageDto {
@@ -83,11 +82,7 @@ export class CommunicationController {
83
82
  createConfigDto.is_default,
84
83
  );
85
84
 
86
- return {
87
- success: true,
88
- data: result,
89
- message: 'Communication configuration created successfully',
90
- };
85
+ return result;
91
86
  } catch (error) {
92
87
  // Handle validation errors with BadRequest status
93
88
  if (
@@ -127,7 +122,8 @@ export class CommunicationController {
127
122
  throw new BadRequestException({
128
123
  success: false,
129
124
  error: 'CONFIGURATION_ERROR',
130
- message: error.message || 'Failed to create communication configuration',
125
+ message:
126
+ error.message || 'Failed to create communication configuration',
131
127
  code: 'INTERNAL_ERROR',
132
128
  });
133
129
  }
@@ -219,7 +215,8 @@ export class CommunicationController {
219
215
  throw new BadRequestException({
220
216
  success: false,
221
217
  error: 'DELETE_ERROR',
222
- message: error.message || 'Failed to delete communication configuration',
218
+ message:
219
+ error.message || 'Failed to delete communication configuration',
223
220
  code: 'CONFIGURATION_ERROR',
224
221
  });
225
222
  }
@@ -1,4 +1,4 @@
1
- import { Injectable, Logger, Inject, forwardRef } from '@nestjs/common';
1
+ import { forwardRef, Inject, Injectable, Logger } from '@nestjs/common';
2
2
  import { InjectRepository } from '@nestjs/typeorm';
3
3
  import { Repository } from 'typeorm';
4
4
  import { ConfigService } from '@nestjs/config';
@@ -56,7 +56,7 @@ export class TaskDataEntity extends BaseEntity {
56
56
  @Column({ nullable: true })
57
57
  due_date: Date;
58
58
 
59
- @Column({ nullable: true, type: 'time' })
59
+ @Column({ nullable: true, type: 'varchar' })
60
60
  due_time: string;
61
61
 
62
62
  @Column({ nullable: true, type: 'varchar' })
@@ -69,8 +69,8 @@ export class TaskDataEntity extends BaseEntity {
69
69
  category: string;
70
70
 
71
71
  @Column({ nullable: true })
72
- remainder_date: Date;
72
+ reminder_date: Date;
73
73
 
74
74
  @Column({ nullable: true, type: 'varchar' })
75
- remainder_time: string;
75
+ reminder_time: string;
76
76
  }
@@ -442,7 +442,7 @@ export class TaskService extends EntityServiceImpl {
442
442
  return await super.createEntity(notePayload, loggedInUser);
443
443
  }
444
444
 
445
- @Cron(CronExpression.EVERY_30_MINUTES)
445
+ @Cron(CronExpression.EVERY_10_SECONDS)
446
446
  async fetchTasksDueIn30Mins() {
447
447
  const now = new Date();
448
448
  const in30Min = new Date(now.getTime() + 30 * 60 * 1000);