Commit graph

79 commits

Author SHA1 Message Date
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
b20f0f7c9f Adding label for GHCR image 2023-01-29 14:46:59 +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
546bf4b43e Changing dockerfile to give permissions of workdir to node user sooner 2023-01-28 11:31:55 +01:00
Collin Duncan
0dc5f6b30a Correcting docker build command 2023-01-28 11:28:46 +01:00
Collin Duncan
54cbda90a0 Adding workflow to create container image 2023-01-28 11:26:02 +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
e3b7785310 Renaming unit test for http server to match src file name 2023-01-21 15:14:40 +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
5cef34d0ef Splitting tests into unit and integration tests 2022-11-27 16:14:56 +01:00
Collin Duncan
b7007be031 Obfuscating password from logs 2022-11-27 16:09:30 +01:00
Collin Duncan
d749f289a7 Consolidating usage of test/it in tests 2022-11-27 16:09:21 +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
8038e2fe12 Updating snapshot and running prettier on tests 2022-11-04 14:16:11 +01:00
Collin Duncan
59ca31fee1 Updating some outdated deps 2022-10-23 12:02:54 +02:00