Commit Graph

104 Commits

Author SHA1 Message Date
Alex Holliday
29c83f5206 Safely access payload values 2024-10-29 14:48:19 +08:00
Alex Holliday
b417b72450 Refactor requestPagespeed to simply call requestHttp with an updated job object 2024-10-29 14:47:54 +08:00
Alex Holliday
10a438a677 Implement handling of hardwareChecks 2024-10-29 13:51:31 +08:00
Alex Holliday
0c321cf484 Add optional authorization config to HTTP request. Delegate handleHardware to handleHttp as they are identical 2024-10-29 13:51:00 +08:00
Alex Holliday
9559e8178f Fix typo == -> === 2024-10-29 10:51:57 +08:00
Alex Holliday
2fda99dbef Update jobQueue JSdocs 2024-10-28 18:09:00 +08:00
Alex Holliday
acdd737a5e await saving monitor 2024-10-28 15:34:19 +08:00
Alex Holliday
8b126d4d8a Fix StatusService SERVICE_NAME 2024-10-28 14:33:08 +08:00
Alex Holliday
5d6cfb16bc Refactor jobQueue to use new services 2024-10-28 14:20:40 +08:00
Alex Holliday
903ce58b39 Add notificationService 2024-10-28 14:20:05 +08:00
Alex Holliday
d85dc50220 Add statusService 2024-10-28 14:19:14 +08:00
Alex Holliday
cb5c7b2c73 Refactor network service 2024-10-28 14:18:27 +08:00
Alex Holliday
50c6e32d6e Fix variable assignment in 2024-10-25 10:49:08 +08:00
Alex Holliday
cf032859a1 Merge branch 'develop' into feat/be/hardware-monitor-notifications 2024-10-25 10:44:30 +08:00
Alex Holliday
268ad695bf replace console.log statements with logger 2024-10-24 15:35:30 +08:00
Alex Holliday
a0248c81c2 standardize log statements 2024-10-24 15:28:13 +08:00
Alex Holliday
8d9803fef0 Added methods for handleHardwareUpdates, refactored sending notifications to allow for arbitrary templates 2024-10-23 13:46:27 +08:00
Alex Holliday
55111ba4c9 Add new template to emailService templateLookup 2024-10-23 13:45:53 +08:00
Alex Holliday
5066580441 add missing 'this' to logger 2024-10-23 11:11:22 +08:00
Alex Holliday
fc85d2b794 Minor refactor in worker loop for clarity 2024-10-22 15:26:55 +08:00
Alexander Holliday
d29fcfbaf7 Merge pull request #1001 from bluewave-labs/feat/be/settings-service-tests
feat/be/settings service tests
2024-10-22 10:12:02 +08:00
Alex Holliday
6f358d297d Update service and tests to use new 2024-10-22 10:11:02 +08:00
Alex Holliday
351b7527ed Remove redundant check 2024-10-21 16:14:43 +08:00
Alex Holliday
7e0bc44ba6 Update networkService to handle hardware type monitors, add tests for full coverage 2024-10-21 11:55:44 +08:00
Alex Holliday
64d2d9b3ce Move opeartion back to 2024-10-18 14:21:22 +08:00
Alex Holliday
f5265b140c Minor refactor for correctness 2024-10-18 13:36:39 +08:00
Alex Holliday
1c30c309a7 Refactor network service to inject dependencies 2024-10-18 11:12:18 +08:00
Alex Holliday
f9495171b1 Fix merge conflict error 2024-10-18 11:00:46 +08:00
Alex Holliday
9a32362ab6 Merge branch 'develop' into feat/be/email-service-tests 2024-10-18 10:53:31 +08:00
Alex Holliday
b69d495206 Remove redundant try/catch block 2024-10-17 14:32:18 +08:00
Alex Holliday
17ed90f76b Refactor EmailService to inject dependencies 2024-10-17 14:00:22 +08:00
Alex Holliday
fd2d16cf78 Format all files on BE with perttier config 2024-10-17 12:07:30 +08:00
Alex Holliday
81f1fe4694 Merge branch 'develop' into feat/be/esm 2024-10-17 10:42:57 +08:00
Rushi Gandhi
05c051ae3a Generate refresh token & add it to response 2024-10-15 12:30:24 +05:30
Alex Holliday
f057807b56 migrate to esm 2024-10-15 11:57:37 +08:00
Alex Holliday
22a0caf919 Fix date/time error in JobQueue 2024-10-04 13:04:18 +08:00
Alex Holliday
c8418705b1 parse form for submission 2024-10-04 12:09:08 +08:00
Alex Holliday
5b3b78bd3f Scale workers on deleting job 2024-10-01 12:36:37 +08:00
Alex Holliday
1f2a19fb43 Merge upstream/develop 2024-10-01 11:02:46 +08:00
Alex Holliday
6c598b976f Move db models to db folder 2024-10-01 10:01:25 +08:00
Alex Holliday
f724997b02 Add JSdocs to SettingsService, add descriptions of services 2024-10-01 09:55:14 +08:00
Alex Holliday
6268b2573c remove jwtSecret from settings 2024-09-30 11:14:53 +08:00
Alex Holliday
806f530016 Merge branch 'feat/be/in-app-settings' into feat/fe/in-app-settings 2024-09-30 09:53:03 +08:00
Alex Holliday
114f4ffb05 refactor reloadSettings 2024-09-30 09:52:47 +08:00
Alex Holliday
43a56e1de1 Fix setting name 2024-09-27 13:17:28 +08:00
Alex Holliday
f4bbbc5fa9 fix conditional loadingof settings 2024-09-27 13:10:29 +08:00
Alex Holliday
c3edbb779a Modify settingsService to load from env by default 2024-09-27 13:02:01 +08:00
Alex Holliday
97419b436c Add reload settings method, reload settings when DB updated 2024-09-26 15:45:54 +08:00
Alex Holliday
0832e8438a remove console log 2024-09-26 15:38:02 +08:00
Alex Holliday
11b97ab3b4 add update settings method, remove all env var references possible 2024-09-26 14:37:11 +08:00