File tree Expand file tree Collapse file tree 5 files changed +28
-20
lines changed
Expand file tree Collapse file tree 5 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 3131 "type-check" : " npm run type-check --workspaces --if-present" ,
3232 "pre-upload" : " npm run type-check && npm run test" ,
3333 "upload:classic" : " npm run pre-upload && cd packages/classic-webview && npm run build && cd ../classic && devvit upload --config=devvit.prod.yaml" ,
34+ "publish:classic" : " npm run pre-upload && cd packages/classic-webview && npm run build && cd ../classic && devvit publish --config=devvit.prod.yaml" ,
3435 "dev:upload:classic" : " npm run pre-upload && npm run dev:upload --workspace packages/classic" ,
3536 "upload:raid" : " npm run pre-upload && cd packages/raid-webview && npm run build && cd ../raid && devvit upload --config=devvit.prod.yaml" ,
37+ "publish:raid" : " npm run pre-upload && cd packages/raid-webview && npm run build && cd ../raid && devvit publish --config=devvit.prod.yaml" ,
3638 "dev:upload:raid" : " npm run pre-upload && npm run dev:upload --workspace packages/raid"
3739 },
3840 "dependencies" : {
Original file line number Diff line number Diff line change 77 "scripts" : {
88 "playtest" : " dotenvx run -f ../../.env.development -- sh -c 'devvit playtest $SUBREDDIT --config=$CLASSIC_DEVVIT_CONFIG'" ,
99 "dev:upload" : " dotenvx run -f ../../.env.development -- sh -c 'devvit upload --config=$CLASSIC_DEVVIT_CONFIG'" ,
10+ "dev:publish" : " dotenvx run -f ../../.env.development -- sh -c 'devvit publish --config=$CLASSIC_DEVVIT_CONFIG'" ,
1011 "lint" : " eslint ./src/" ,
1112 "prettier" : " prettier --write ." ,
1213 "test" : " vitest run --passWithNoTests" ,
Original file line number Diff line number Diff line change @@ -87,12 +87,14 @@ export const initialize = async (context: TriggerContext) => {
8787 await context . scheduler . cancelJob ( job . id ) ;
8888 }
8989
90- await context . scheduler . runJob ( {
91- // Time is in UTC, so I think this is 8am? It's around there :D
92- cron : '0 13 * * *' ,
93- name : 'DAILY_GAME_DROP' ,
94- data : { } ,
95- } ) ;
90+ // Do nothing on initialize so that we don't run the cron any more since this is the old game.
91+
92+ // await context.scheduler.runJob({
93+ // // Time is in UTC, so I think this is 8am? It's around there :D
94+ // cron: '0 13 * * *',
95+ // name: 'DAILY_GAME_DROP',
96+ // data: {},
97+ // });
9698} ;
9799
98100Devvit . addTrigger ( {
Original file line number Diff line number Diff line change 77 "scripts" : {
88 "playtest" : " dotenvx run -f ../../.env.development -- sh -c 'devvit playtest $SUBREDDIT --config=../../$RAID_DEVVIT_CONFIG'" ,
99 "dev:upload" : " dotenvx run -f ../../.env.development -- sh -c 'devvit upload --config=../../$RAID_DEVVIT_CONFIG'" ,
10+ "dev:publish" : " dotenvx run -f ../../.env.development -- sh -c 'devvit publish --config=../../$RAID_DEVVIT_CONFIG'" ,
1011 "lint" : " eslint ./src/" ,
1112 "prettier" : " prettier --write ." ,
1213 "test" : " vitest run --passWithNoTests" ,
Original file line number Diff line number Diff line change @@ -58,24 +58,26 @@ export const initialize = async (context: TriggerContext) => {
5858 redis : context . redis ,
5959 } ) ;
6060
61- let jobs = await context . scheduler . listJobs ( ) ;
62- for ( let job of jobs ) {
61+ const jobs = await context . scheduler . listJobs ( ) ;
62+ for ( const job of jobs ) {
6363 await context . scheduler . cancelJob ( job . id ) ;
6464 }
6565
66- await context . scheduler . runJob ( {
67- // Time is in UTC, so I think this is 2pm? It's around there :D
68- cron : '0 19 * * 2,5' ,
69- name : 'DROP_RAID' ,
70- data : { } ,
71- } ) ;
66+ // Do nothing on initialize so that we don't run the cron any more since this is the old game.
7267
73- await context . scheduler . runJob ( {
74- // Every minute
75- cron : '* * * * *' ,
76- name : 'FAUCET_REFRESH_ALL_ACTIVE_CHALLENGES' ,
77- data : { } ,
78- } ) ;
68+ // await context.scheduler.runJob({
69+ // // Time is in UTC, so I think this is 2pm? It's around there :D
70+ // cron: '0 19 * * 2,5',
71+ // name: 'DROP_RAID',
72+ // data: {},
73+ // });
74+
75+ // await context.scheduler.runJob({
76+ // // Every minute
77+ // cron: '* * * * *',
78+ // name: 'FAUCET_REFRESH_ALL_ACTIVE_CHALLENGES',
79+ // data: {},
80+ // });
7981} ;
8082
8183Devvit . addTrigger ( {
You can’t perform that action at this time.
0 commit comments