We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c924976 + 62ac11c commit 21a5736Copy full SHA for 21a5736
back/src/domains/reservation/service/reservation.service.ts
@@ -20,6 +20,8 @@ import { Reservation } from '../entity/reservation.entity';
20
import { ReservedSeat } from '../entity/reservedSeat.entity';
21
import { ReservationRepository } from '../repository/reservation.repository';
22
23
+const OFFSET = 1000 * 60 * 60 * 9;
24
+
25
@Injectable()
26
export class ReservationService {
27
private redis: Redis;
@@ -169,7 +171,7 @@ export class ReservationService {
169
171
program: Program,
170
172
) {
173
const reservationData: any = {
- createdAt: new Date(),
174
+ createdAt: new Date(Date.now() + OFFSET),
175
amount: reservationCreateDto.seats.length,
176
program: program,
177
event: event[0],
0 commit comments