Skip to content

Commit 7fff7dc

Browse files
authored
Merge pull request #53 from headlines-toolkit/chore_remove_unused_updrage_account_related_code
Chore remove unused updrage account related code
2 parents b55921b + e1e0f14 commit 7fff7dc

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: 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
44
on:
5-
push:
6-
branches: [ main ]
5+
release:
6+
types: [published]
77
jobs:
88
build_and_deploy:
99
runs-on: ubuntu-latest # Use the latest version of Ubuntu
@@ -32,4 +32,4 @@ jobs:
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

lib/shared/services/feed_injector_service.dart

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)