Commit graph

57 commits

Author SHA1 Message Date
Collin Duncan
faca571cde Fixing fetchByDate query 2023-02-10 15:09:34 +01:00
Collin Duncan
e9614d53cb Converting date function from MySQL to SQLite syntax 2023-02-10 14:54:47 +01:00
Collin Duncan
06bbcc0bc4 Removing logger from dayjs wrapper 2023-02-10 14:44:52 +01:00
Collin Duncan
87e651b38d Adding log to custom dayjs wrapper 2023-02-10 14:35:25 +01:00
Collin Duncan
fc35d12565 Adding database debug log for database queries 2023-02-10 14:33:04 +01:00
Collin Duncan
0d68d11af4 Fixing issue with scheduler sending single reservation 2023-02-10 14:14:19 +01:00
Collin Duncan
058af75553 Logging out date query parameter 2023-02-10 14:13:12 +01:00
Collin Duncan
f04e10f19b 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-02-10 12:24:27 +01:00
Collin Duncan
15f98f5df6 Prettier fixes 2023-02-10 12:23:16 +01:00
Collin Duncan
552365eabb Fixing issue with router expecting a trailing slash for GET /cron 2023-02-08 13:50:12 +01:00
Collin Duncan
f320ef5c52 Adding status check for cron job 2023-02-08 13:33:42 +01:00
Collin Duncan
8a69d5ed57 Adding some routers to http server that handle more requests to /reservations and /cron 2023-01-30 12:39:05 +01:00
Collin Duncan
28f60bec09 Updating errors and logging in a lot of places. Changing some static methods of Reservation to instance methods 2023-01-30 12:38:42 +01:00
Collin Duncan
567a47e355 Changing $ to ? for SQL prepared statement 2023-01-30 08:59:06 +01:00
Collin Duncan
76a42255f4 Deleting reservation after successful run 2023-01-29 23:44:28 +01:00
Collin Duncan
8df792d7bf Removing unique constraint from username column 2023-01-29 19:19:08 +01:00
Collin Duncan
4607f3c25e Changing logger to show url and method of route 2023-01-29 17:56:19 +01:00
Collin Duncan
730a331bfc Slowing down cron for now to run every ten minutes 2023-01-29 14:35:42 +01:00
Collin Duncan
807ee0a8ca Adding some more error logging and handling as well as a circuit breaker to stop cron from continuously fucking up 2023-01-29 14:34:39 +01:00
Collin Duncan
49228d0454 Switching to use SQLite instead of MySQL 2023-01-28 10:51:46 +01:00
Collin Duncan
7de7d148c8 Updating SQL for saving reservation to DB 2023-01-21 16:01:38 +01:00
Collin Duncan
7324e76587 Updating reservation to use UUIDv4 as an id 2023-01-21 15:17:21 +01:00
Collin Duncan
c2a5051248 Changing cron to run at every minute in 7th hour 2023-01-21 15:14:58 +01:00
Collin Duncan
8a9d39dc56 Updating logger to display timestamp 2023-01-20 15:37:15 +01:00
Collin Duncan
048160be63 Adding dayjs module to allow timezone handling by default and replaced node_module with this module 2023-01-20 15:31:04 +01:00
Collin Duncan
bc7f2a3d55 Updating Dockerfile to work properly with puppeteer 2023-01-20 12:33:50 +01:00
Collin Duncan
9cc3f3369f Prettiering 2023-01-20 09:52:28 +01:00
Collin Duncan
8e85a34966 Removing rollup and relying on tsc to make builds. Also updated Docker to have a working development version 2023-01-20 09:38:50 +01:00
Collin Duncan
1699b936ef Fixing SQL issues with table creation query 2023-01-20 09:36:37 +01:00
Collin Duncan
0f43259c3c Passing in MYSQL_HOST during MySQL connection configuration 2023-01-20 09:36:05 +01:00
Collin Duncan
f7a1a900fb Changing logger to work with AsyncLocalStorage to propagate logger to callee functions 2022-11-30 11:56:39 +01:00
Collin Duncan
a081616746 Fix issue with weird semicolon thing 2022-11-30 09:58:37 +01:00
Collin Duncan
f607679bab Adding cron job for running reservations; changing how the runner worked to only instantiate one runner and reuse it; lots of tests! 2022-11-29 22:51:28 +01:00
Collin Duncan
5c762aa3ad Removing the weird semicolon-infront-of-typed-variable thing! 2022-11-29 22:50:49 +01:00
Collin Duncan
b7007be031 Obfuscating password from logs 2022-11-27 16:09:30 +01:00
Collin Duncan
f5ee6bf12e Spliting out server code, adding unit test for server 2022-11-27 15:59:20 +01:00
Collin Duncan
f125aef8a1 Moving around some files so that it is a bit more clear and using ts-jest for jest 2022-11-21 19:07:43 +01:00
Collin Duncan
e25b97072a Changing error message on route not found 2022-11-21 18:53:42 +01:00
Collin Duncan
3cd22e0e3c Adding some docker setup for local testing 2022-11-21 18:50:59 +01:00
Collin Duncan
01c56ef5ef Removing redundant file 2022-11-07 12:41:32 +01:00
Collin Duncan
b97eafedff Updating node version, improving build process and adding required modules to dev dependencies 2022-11-07 11:44:57 +01:00
Collin Duncan
6307445659 Moving server file 2022-11-04 14:59:41 +01:00
Collin Duncan
9810729617 Removing babel and upgrading rollup to v3 2022-11-04 14:59:23 +01:00
Collin Duncan
346147d04a Fixing some errors due to changing reservation requests 2022-10-23 12:02:44 +02:00
Collin Duncan
e3ffacb410 Lots of changes to project structure
First integration of requester and scheduler workers
Added password hashing functions
Adding initial database integration
2022-10-23 11:55:47 +02:00
Collin Duncan
28606529ee
Updating runner to change to next month if needed; Added some more logging; Cleaning up some scripts 2022-03-29 22:41:44 +02:00
Collin Duncan
61377ea4a8
some naming/organization changes 2022-02-11 13:20:15 +01:00
Collin Duncan
326c1eec58
removing traces of aws and cleaning up workers/tests 2022-02-10 17:27:35 +01:00
Collin Duncan
42c8dfe776
Fixing issues with rollup and running locally 2022-02-01 16:48:50 +01:00
cgduncan7
055c64c5a7
Adding logger; moving lambdas to separate dirs and including rollup to create distributables; finished up some unit tests 2021-11-28 19:40:16 +01:00