Commit Graph
1194 Commits
Author SHA1 Message Date
Alex Holliday 3980236580 Remove empty notification validation 2024-10-28 14:17:10 +08:00
Alex Holliday fa5eef14c3 Revert moving notification check to validation, FE always sends an empty notification array 2024-10-26 18:45:51 +08:00
Alexander Holliday 699bea5806 Merge branch 'develop' into fix/be/refactor-auth-controller 2024-10-26 09:39:13 +08:00
Alexander Holliday e2bcbe1621 Merge pull request #1037 from bluewave-labs/feat/be/hardware-monitor-notifications
feat/be/hardware monitor notifications
2024-10-26 09:32:41 +08:00
Mend Renovate f3e33d1ebd fix(deps): update dependency mongoose to v8.7.3 2024-10-25 18:43:47 +00:00
Alex Holliday 50c6e32d6e Fix variable assignment in 2024-10-25 10:49:08 +08:00
Alex Holliday 70872c368d Add status to hardware check model 2024-10-25 10:48:37 +08:00
Alex Holliday cf032859a1 Merge branch 'develop' into feat/be/hardware-monitor-notifications 2024-10-25 10:44:30 +08:00
Alexander Holliday 3275bc49d0 Merge pull request #1058 from bluewave-labs/feat/be/logger-improvement
feat/be/logger improvement
2024-10-25 09:33:47 +08:00
Alexander Holliday c1963171b3 Merge pull request #1057 from bluewave-labs/fix/be/server-index-cleanup
fix/be/server-index-cleanup
2024-10-25 09:28:33 +08:00
Alexander Holliday 886d9615f7 Merge pull request #1054 from ajhollid/fix/be/refactor-auth-controller
Fix/be/refactor auth controller
2024-10-25 09:28:08 +08:00
Alex Holliday 268ad695bf replace console.log statements with logger 2024-10-24 15:35:30 +08:00
Alex Holliday 4601d46371 update tests 2024-10-24 15:28:21 +08:00
Alex Holliday a0248c81c2 standardize log statements 2024-10-24 15:28:13 +08:00
Alex Holliday 6984eb8a70 Rewrite logger 2024-10-24 15:27:34 +08:00
Alex Holliday 0649002d27 removed unused endpoints from index.js, moved db connection to index.js 2024-10-24 12:31:22 +08:00
Alex Holliday a709aa9674 Replace if/else block with ternary 2024-10-24 12:02:14 +08:00
Alex Holliday 6ce55a5ea6 Update editMonitorBodyValidation to disallow empty notifications 2024-10-24 12:00:55 +08:00
Alex Holliday 8eef831794 update tests 2024-10-24 12:00:25 +08:00
Alex Holliday 17b8011ce1 Remove redundant check from 2024-10-24 12:00:13 +08:00
Alex Holliday 2c408063ad update tests 2024-10-24 11:56:40 +08:00
Alex Holliday 78170856f0 Refactor createMonitor to remove redundany check 2024-10-24 11:56:27 +08:00
Alex Holliday f58bac9ccf Update joi validation to reject empty Notification array on createMonitor 2024-10-24 11:56:06 +08:00
Alex Holliday bbcdc2f2a2 Add status 404 to getMonitorById error at DB level 2024-10-24 11:42:53 +08:00
Alex Holliday b69fc223bf remove redundant check 2024-10-24 11:42:18 +08:00
Alex Holliday 084315c377 Update tests 2024-10-24 11:37:24 +08:00
Alex Holliday 3f4678f5e6 Refactor getMonitorCertificate to remove redundant check, move invalid cert handling to FE 2024-10-24 11:36:56 +08:00
Alex Holliday fb0ead89b7 Refactor fetchMonitorCertificate to throw an error if invald cert 2024-10-24 11:35:58 +08:00
Alex Holliday 86eaae1754 Fix test to expect 401 instead of 403 2024-10-24 11:06:40 +08:00
Alex Holliday 73dcc3f4ed Fix test for deleteUser 2024-10-24 11:06:05 +08:00
Alex Holliday 18081ceb77 fix typo in userModule 2024-10-24 11:01:17 +08:00
Alex Holliday bc8e509b17 remove redundant user check in deleteUser 2024-10-24 11:00:45 +08:00
Alex Holliday 084ef9b952 Remove redundant check for user in requestRecovery method 2024-10-24 10:59:46 +08:00
Alex Holliday ea4e19554b 403 -> 401 for incorrect password since 403 will be used for refresh tokens later 2024-10-24 10:58:25 +08:00
Alexander Holliday d680593c86 Merge pull request #1035 from bluewave-labs/feat/be/job-queue-tests
Feat/be/job queue tests
2024-10-24 10:46:31 +08:00
Alex Holliday 47946cbf34 Uncomment out expect statement 2024-10-24 10:04:22 +08:00
Alexander Holliday fa11e0cec0 Merge pull request #1048 from renovate-bot/renovate/winston-3.x-lockfile
fix(deps): update dependency winston to v3.15.0
2024-10-24 09:55:26 +08:00
Alexander Holliday af101c63dc Merge pull request #1047 from renovate-bot/renovate/mongoose-8.x-lockfile
fix(deps): update dependency mongoose to v8.7.2
2024-10-24 09:55:13 +08:00
Alexander Holliday ea07c1a402 Merge pull request #1046 from renovate-bot/renovate/mailersend-2.x-lockfile
fix(deps): update dependency mailersend to v2.3.0
2024-10-24 09:54:48 +08:00
Alexander Holliday 7f87ef14ea Merge pull request #1045 from renovate-bot/renovate/helmet-7.x-lockfile
fix(deps): update dependency helmet to v7.2.0
2024-10-24 09:54:36 +08:00
Alexander Holliday 92ee22b2fc Merge pull request #1044 from renovate-bot/renovate/bullmq-5.x
fix(deps): update dependency bullmq to v5.21.2
2024-10-24 09:53:40 +08:00
Mend Renovate a04c6f90a1 fix(deps): update dependency winston to v3.15.0 2024-10-23 17:23:16 +00:00
Mend Renovate 216a5cf080 fix(deps): update dependency mongoose to v8.7.2 2024-10-23 17:23:06 +00:00
Mend Renovate cbbb8e21b5 fix(deps): update dependency mailersend to v2.3.0 2024-10-23 12:26:11 +00:00
Mend Renovate 6d2be3db20 fix(deps): update dependency helmet to v7.2.0 2024-10-23 12:26:00 +00:00
Mend Renovate 61c5af6d70 fix(deps): update dependency bullmq to v5.21.2 2024-10-23 11:59:30 +00:00
Mend Renovate 1d8067b8e8 chore(deps): update dependency chai to v5.1.2 2024-10-23 11:59:15 +00: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 2ae5fb6008 Added email template for threshold violation 2024-10-23 13:45:28 +08:00