Commit graph

51 commits

Author SHA1 Message Date
Collin Duncan
699b8445ff
Adding recurring reservations and updating some linting/formatting rules 2023-06-29 10:32:09 +02:00
Collin Duncan
9da2d5e2f2
Formatting fixes 2023-06-27 16:06:19 +02:00
Collin Duncan
1def4de40c
Big ole refactor to using nestjs for some practice 2023-05-26 15:43:14 -05:00
Collin Duncan
eb9991895a
Properly setting session when logging in or out 2023-05-23 15:09:18 -05:00
Collin Duncan
fa99ad7941
Changing how sessions are started and handled to fix issues with multiple reservation requests 2023-05-23 15:09:18 -05:00
Collin Duncan
300ebe9e98
Updating reservation to round day diff down to allow for reservations up to 7.99 days (e.g. performing a reservation at 21.00 at 07.00 the week before) 2023-05-23 15:09:17 -05:00
Collin Duncan
7e3457cce3
Removing some default args I had recently changed due to an error when launching chromium 2023-05-23 15:09:17 -05:00
Collin Duncan
a8927c655a
Dockerfile was incorrect, trying to fix this and expose a testing method on server as I am having issues with M1 processor with puppeteer as well 2023-05-23 15:09:17 -05:00
Collin Duncan
0f0acd064e
Making the DB debug log a bit more concise 2023-05-23 15:09:17 -05:00
Collin Duncan
d1580028cf
Fixing tz issue. SQLite uses UTC only so converting local time to UTC before saving 2023-05-23 15:09:17 -05:00
Collin Duncan
257595c565
Changing reservation to return results in ascending order 2023-05-23 15:09:16 -05:00
Collin Duncan
f84928a35b
Fixing mismatching database paths 2023-05-23 15:09:16 -05:00
Collin Duncan
3bef2a8819
Updating path to sqlite db file 2023-05-23 15:09:16 -05:00
Collin Duncan
462a163082
Changing fetchByDate query to use the date of the reservation 2023-05-23 15:09:16 -05:00
Collin Duncan
76b887faba
Fixing fetchByDate query 2023-05-23 15:09:16 -05:00
Collin Duncan
caf6370727
Converting date function from MySQL to SQLite syntax 2023-05-23 15:09:16 -05:00
Collin Duncan
763d8b3833
Removing logger from dayjs wrapper 2023-05-23 15:09:16 -05:00
Collin Duncan
fb817610e6
Adding log to custom dayjs wrapper 2023-05-23 15:09:16 -05:00
Collin Duncan
5edf0eac68
Adding database debug log for database queries 2023-05-23 15:09:15 -05:00
Collin Duncan
1d5c75b252
Fixing issue with scheduler sending single reservation 2023-05-23 15:09:15 -05:00
Collin Duncan
3219256961
Adding some additional logic to support multiple reservations during one runner request and allowing fetching reservations by date. Also changed cron to only run once at 7.00 and fetch all available reservations at that date 2023-05-23 15:09:15 -05:00
Collin Duncan
878006271f
Prettier fixes 2023-05-23 15:09:15 -05:00
Collin Duncan
6dfa37272e
Updating errors and logging in a lot of places. Changing some static methods of Reservation to instance methods 2023-05-23 15:09:15 -05:00
Collin Duncan
983c785029
Changing $ to ? for SQL prepared statement 2023-05-23 15:09:15 -05:00
Collin Duncan
b2ccbc2f7d
Deleting reservation after successful run 2023-05-23 15:09:15 -05:00
Collin Duncan
4d56881d12
Removing unique constraint from username column 2023-05-23 15:09:14 -05:00
Collin Duncan
18a643034a
Adding some more error logging and handling as well as a circuit breaker to stop cron from continuously fucking up 2023-05-23 15:09:14 -05:00
Collin Duncan
0c6c9df93f
Switching to use SQLite instead of MySQL 2023-05-23 15:09:14 -05:00
Collin Duncan
dd46f61ecc
Updating SQL for saving reservation to DB 2023-05-23 15:09:14 -05:00
Collin Duncan
bf0852d541
Updating reservation to use UUIDv4 as an id 2023-05-23 15:09:14 -05:00
Collin Duncan
f8747ea045
Updating logger to display timestamp 2023-05-23 15:09:13 -05:00
Collin Duncan
09e4b3a1b8
Adding dayjs module to allow timezone handling by default and replaced node_module with this module 2023-05-23 15:09:13 -05:00
Collin Duncan
5653d98161
Updating Dockerfile to work properly with puppeteer 2023-05-23 15:09:13 -05:00
Collin Duncan
a18a9ca34d
Prettiering 2023-05-23 15:09:13 -05:00
Collin Duncan
9f59e60901
Fixing SQL issues with table creation query 2023-05-23 15:09:13 -05:00
Collin Duncan
c47d7aa0f5
Passing in MYSQL_HOST during MySQL connection configuration 2023-05-23 15:09:13 -05:00
Collin Duncan
02327fc734
Changing logger to work with AsyncLocalStorage to propagate logger to callee functions 2023-05-23 15:09:13 -05:00
Collin Duncan
420aa5ed78
Fix issue with weird semicolon thing 2023-05-23 15:09:12 -05:00
Collin Duncan
69249a11dc
Adding cron job for running reservations; changing how the runner worked to only instantiate one runner and reuse it; lots of tests! 2023-05-23 15:09:12 -05:00
Collin Duncan
a765df3530
Removing the weird semicolon-infront-of-typed-variable thing! 2023-05-23 15:09:12 -05:00
Collin Duncan
a97fb5df2f
Obfuscating password from logs 2023-05-23 15:09:12 -05:00
Collin Duncan
90a1f00f3d
Moving around some files so that it is a bit more clear and using ts-jest for jest 2023-05-23 15:09:12 -05:00
Collin Duncan
5cdbc3ebb0
Adding some docker setup for local testing 2023-05-23 15:09:12 -05:00
Collin Duncan
3247ca5315
Lots of changes to project structure
First integration of requester and scheduler workers
Added password hashing functions
Adding initial database integration
2023-05-23 15:09:11 -05:00
Collin Duncan
98bd540130
Updating runner to change to next month if needed; Added some more logging; Cleaning up some scripts 2023-05-23 15:09:10 -05:00
Collin Duncan
2b9fa53c5f
removing traces of aws and cleaning up workers/tests 2023-05-23 15:09:10 -05:00
Collin Duncan
0cf9aac94c
Adding logger; moving lambdas to separate dirs and including rollup to create distributables; finished up some unit tests 2023-05-23 15:09:10 -05:00
Collin Duncan
6aa46fbaa9
Updated reservationScheduler to properly input/output correct data format 2023-05-23 15:09:09 -05:00
Collin Duncan
4f76823102
Adding scheduling functions to prepare to schedule reservation requests in the future 2023-05-23 15:09:09 -05:00
Collin Duncan
7246ecabf2
Updating request to focus on single request, started working on reservationScheduler 2023-05-23 15:09:09 -05:00