Skip to content

Commit

Permalink
Merge pull request #142 from Dhanashree-Patil95/change
Browse files Browse the repository at this point in the history
Fix[Bulk attendance fix]
  • Loading branch information
vijaykhollam authored Apr 29, 2024
2 parents 16cc557 + 46009fa commit 062e9d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/adapters/postgres/attendance-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ export class PostgresAttendanceService {
attendanceData: BulkAttendanceDTO
) {

const loginUserId=request.user.userId


const responses = [];
const errors = [];
try {
Expand All @@ -577,7 +580,7 @@ export class PostgresAttendanceService {
tenantId:tenantId
})
const attendanceRes: any = await this.updateAttendanceRecord(
request,
loginUserId,
userAttendance
);

Expand Down
4 changes: 3 additions & 1 deletion src/attendance/dto/attendance.dto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ManyToOne, JoinColumn } from 'typeorm';
import { ManyToOne, JoinColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';
import { IsDate, IsDateString, IsDefined, IsEnum, IsUUID, Matches, Validate, ValidateNested, ValidationArguments, ValidatorConstraint, ValidatorConstraintInterface } from 'class-validator';
import { Exclude, Expose, Transform, Type } from "class-transformer";
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
Expand Down Expand Up @@ -150,9 +150,11 @@ export class AttendanceDto {
cohort: Cohort;


@CreateDateColumn()
@Expose()
createdAt: string;

@UpdateDateColumn()
@Expose()
updatedAt: string;

Expand Down

0 comments on commit 062e9d8

Please sign in to comment.