File tree Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ export {
36
36
populateTestimonySubmissionNotificationEvents ,
37
37
cleanupNotifications ,
38
38
deliverNotifications ,
39
- httpsCleanupNotifications ,
40
39
updateUserNotificationFrequency
41
40
} from "./notifications"
42
41
Original file line number Diff line number Diff line change @@ -67,22 +67,3 @@ const runCleanupNotifications = async () => {
67
67
export const cleanupNotifications = functions . pubsub
68
68
. schedule ( "every 24 hours" )
69
69
. onRun ( runCleanupNotifications )
70
-
71
- export const httpsCleanupNotifications = functions . https . onRequest (
72
- async ( request , response ) => {
73
- try {
74
- console . log ( "httpsCleanupNotifications triggered" )
75
- await runCleanupNotifications ( )
76
- console . log ( "DEBUG: cleanupNotifications completed" )
77
-
78
- response
79
- . status ( 200 )
80
- . send (
81
- "Successfully cleaned up old notifications, topic events, and email documents"
82
- )
83
- } catch ( error ) {
84
- console . error ( "Error in httpsCleanupNotifications:" , error )
85
- response . status ( 500 ) . send ( "Internal server error" )
86
- }
87
- }
88
- )
Original file line number Diff line number Diff line change 2
2
import { publishNotifications } from "./publishNotifications"
3
3
import { populateBillHistoryNotificationEvents } from "./populateBillHistoryNotificationEvents"
4
4
import { populateTestimonySubmissionNotificationEvents } from "./populateTestimonySubmissionNotificationEvents"
5
- import {
6
- cleanupNotifications ,
7
- httpsCleanupNotifications
8
- } from "./cleanupNotifications"
5
+ import { cleanupNotifications } from "./cleanupNotifications"
9
6
import { deliverNotifications } from "./deliverNotifications"
10
7
import { updateUserNotificationFrequency } from "./updateUserNotificationFrequency"
11
8
@@ -16,6 +13,5 @@ export {
16
13
populateTestimonySubmissionNotificationEvents ,
17
14
cleanupNotifications ,
18
15
deliverNotifications ,
19
- httpsCleanupNotifications ,
20
16
updateUserNotificationFrequency
21
17
}
You can’t perform that action at this time.
0 commit comments