Skip to content

Commit

Permalink
fix: minor 3
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed May 19, 2024
1 parent dc04c2f commit 71c66ed
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
47 changes: 22 additions & 25 deletions api/src/mocks/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ INSERT INTO "recruitment_session"
VALUES
(1, 'concluded', 1, '2024-04-10', '2024-04-04', ARRAY['2024-04-05', '2024-04-06', '2024-04-07', '2024-04-08', '2024-04-09']::date[], '2024-04-05', '2024-04-10'),
(2, 'concluded', 1, '2024-05-10', '2024-05-04', ARRAY['2024-05-05', '2024-05-06', '2024-05-07', '2024-05-08']::date[], '2024-05-05', '2024-05-09'),
(3, 'active', 1, '2024-05-14', '2024-05-14', ARRAY['2024-05-16', '2024-05-17', '2024-05-18', '2024-05-19', '2024-05-20']::date[], '2024-05-16', '2024-05-21')
;
(3, 'active', 1, '2024-05-14', '2024-05-14', ARRAY['2024-05-16', '2024-05-17', '2024-05-18', '2024-05-19', '2024-05-20']::date[], '2024-05-16', '2024-05-21');



Expand Down Expand Up @@ -94,33 +93,32 @@ VALUES
(77, '2024-05-20 15:00:00', '2024-05-20 16:00:00', 3),
(78, '2024-05-20 16:00:00', '2024-05-20 17:00:00', 3),
(79, '2024-05-20 17:00:00', '2024-05-20 18:00:00', 3),
(80, '2024-05-20 18:00:00', '2024-05-20 19:00:00', 3)
;
(80, '2024-05-20 18:00:00', '2024-05-20 19:00:00', 3);


INSERT INTO "user"
("oauthId","firstName","lastName","sex","email","phone_no","telegramId","role","is_board","is_expert")
VALUES
('1', 'Pasquale', 'Bianco', 'male', '[email protected]', '3405174444', 'pbianco', 'member', true, true),
('2', 'John', 'Doe', 'male', '[email protected]', '1234567890', 'jdoe', 'member', false, true),
('3', 'Jane', 'Smith', 'female', '[email protected]', '9876543210', 'jsmith', 'member', false, false),
('4', 'Michael', 'Johnson', 'male', '[email protected]', '5555555555', 'mjohnson', 'member', true, true),
('5', 'Emily', 'Brown', 'female', '[email protected]', '1111111111', 'ebrown', 'member', false, true),
('6', 'David', 'Wilson', 'male', '[email protected]', '2222222222', 'dwilson', 'member', false, false),
('7', 'Olivia', 'Johnson', 'female', '[email protected]', '3333333333', 'ojohnson', 'member', true, false),
('8', 'James', 'Smith', 'male', '[email protected]', '4444444444', 'jsmith', 'member', false, false),
('9', 'Sophia', 'Miller', 'female', '[email protected]', '5555555555', 'smiller', 'member', false, true),
('10', 'Benjamin', 'Davis', 'male', '[email protected]', '6666666666', 'bdavis', 'member', false, false),
('11', 'Ava', 'Wilson', 'female', '[email protected]', '7777777777', 'awilson', 'member', true, true),
('12', 'William', 'Anderson','male', '[email protected]', '8888888888', 'wanderson', 'member', false, false),
('13', 'Mia', 'Thomas', 'female', '[email protected]', '9999999999', 'mthomas', 'member', false, false),
('14', 'Alexander', 'Taylor', 'male', '[email protected]', '1111111111', 'ataylor', 'member', false, true),
('15', 'Charlotte', 'Clark', 'female', '[email protected]', '2222222222', 'cclark', 'member', false, false),
('16', 'Daniel', 'Moore', 'male', '[email protected]', '3333333333', 'dmoore', 'member', false, false),
('17', 'Amelia', 'Walker', 'female', '[email protected]', '4444444444', 'awalker', 'clerk', false, false),
('18', 'Matthew', 'Lewis', 'male', '[email protected]', '5555555555', 'mlewis', 'admin', false, true),
('1', 'Pasquale', 'Bianco', 'male', '[email protected]', '3405174444', 'pbianco', 'member', true, true),
('2', 'John', 'Doe', 'male', '[email protected]', '1234567890', 'jdoe', 'member', false, true),
('3', 'Jane', 'Smith', 'female', '[email protected]', '9876543210', 'jsmith', 'member', false, false),
('4', 'Michael', 'Johnson', 'male', '[email protected]', '5555555555', 'mjohnson', 'member', true, true),
('5', 'Emily', 'Brown', 'female', '[email protected]', '1111111111', 'ebrown', 'member', false, true),
('6', 'David', 'Wilson', 'male', '[email protected]', '2222222222', 'dwilson', 'member', false, false),
('7', 'Olivia', 'Johnson', 'female', '[email protected]', '3333333333', 'ojohnson', 'member', true, false),
('8', 'James', 'Smith', 'male', '[email protected]', '4444444444', 'jsmith', 'member', false, false),
('9', 'Sophia', 'Miller', 'female', '[email protected]', '5555555555', 'smiller', 'member', false, true),
('10', 'Benjamin', 'Davis', 'male', '[email protected]', '6666666666', 'bdavis', 'member', false, false),
('11', 'Ava', 'Wilson', 'female', '[email protected]', '7777777777', 'awilson', 'member', true, true),
('12', 'William', 'Anderson','male', '[email protected]', '8888888888', 'wanderson', 'member', false, false),
('13', 'Mia', 'Thomas', 'female', '[email protected]', '9999999999', 'mthomas', 'member', false, false),
('14', 'Alexander', 'Taylor', 'male', '[email protected]', '1111111111', 'ataylor', 'member', false, true),
('15', 'Charlotte', 'Clark', 'female', '[email protected]', '2222222222', 'cclark', 'member', false, false),
('16', 'Daniel', 'Moore', 'male', '[email protected]', '3333333333', 'dmoore', 'member', false, false),
('17', 'Amelia', 'Walker', 'female', '[email protected]', '4444444444', 'awalker', 'clerk', false, false),
('18', 'Matthew', 'Lewis', 'male', '[email protected]', '5555555555', 'mlewis', 'admin', false, true),
('19', 'Ella', 'Harris', 'female', '[email protected]', '6666666666', 'eharris', 'supervisor', false, true),
('20', 'Joseph', 'King', 'male', '[email protected]', '7777777777', 'jking', 'supervisor', true, false)
('20', 'Joseph', 'King', 'male', '[email protected]', '7777777777', 'jking', 'supervisor', true, false);


# Availability
Expand Down Expand Up @@ -178,6 +176,5 @@ VALUES
(49, 'recovering' ,'2024-05-14 00:00:00', 63, '8' ),
(50, 'free' ,'2024-05-14 00:00:00', 62, '14'),
(51, 'free' ,'2024-05-14 00:00:00', 61, '4' ),
(52, 'free' ,'2024-05-14 00:00:00', 60, '13')
;
(52, 'free' ,'2024-05-14 00:00:00', 60, '13');

2 changes: 1 addition & 1 deletion api/src/timeslots/create-timeslot.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TimeSlot } from '@hkrecruitment/shared';
import { ApiProperty } from '@nestjs/swagger';

export class CreateTimeSlotDto implements Partial<TimeSlot> {
@ApiProperty()
@ApiProperty() //
start: Date;

@ApiProperty()
Expand Down

0 comments on commit 71c66ed

Please sign in to comment.