File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11name : deploy
22
3- # Run this workflow when a push is made to the main branch
3+ # Run this workflow when a new release is published
44on :
5- push :
6- branches : [ main ]
5+ release :
6+ types : [published]
77jobs :
88 build_and_deploy :
99 runs-on : ubuntu-latest # Use the latest version of Ubuntu
3232 uses : peaceiris/actions-gh-pages@v3
3333 with :
3434 github_token : ${{ secrets.GITHUB_TOKEN }}
35- publish_dir : ./build/web
35+ publish_dir : ./build/web
Original file line number Diff line number Diff line change @@ -108,11 +108,16 @@ class FeedInjectorService {
108108 if (userRole == UserRole .guestUser) {
109109 daysThreshold = daysBetweenActionsConfig.guestDaysBetweenAccountActions;
110110 actionType = AccountActionType .linkAccount;
111- } else if (userRole == UserRole .standardUser) {
112- // Assuming standardUser is the target for upgrade prompts
111+ } else if (userRole == UserRole .standardUser) {
113112 daysThreshold =
114113 daysBetweenActionsConfig.standardUserDaysBetweenAccountActions;
115- actionType = AccountActionType .upgrade;
114+
115+ // todo(fulleni): once account upgrade feature is implemented,
116+ // uncomment the action type line
117+ // and remove teh null return line.
118+
119+ // actionType = AccountActionType.upgrade;
120+ return null ;
116121 } else {
117122 // No account actions for premium users or other roles for now
118123 return null ;
You can’t perform that action at this time.
0 commit comments