Skip to content

Chore remove unused updrage account related code #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy

# Run this workflow when a push is made to the main branch
# Run this workflow when a new release is published
on:
push:
branches: [ main ]
release:
types: [published]
jobs:
build_and_deploy:
runs-on: ubuntu-latest # Use the latest version of Ubuntu
Expand Down Expand Up @@ -32,4 +32,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web
publish_dir: ./build/web
11 changes: 8 additions & 3 deletions lib/shared/services/feed_injector_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,16 @@ class FeedInjectorService {
if (userRole == UserRole.guestUser) {
daysThreshold = daysBetweenActionsConfig.guestDaysBetweenAccountActions;
actionType = AccountActionType.linkAccount;
} else if (userRole == UserRole.standardUser) {
// Assuming standardUser is the target for upgrade prompts
} else if (userRole == UserRole.standardUser) {
daysThreshold =
daysBetweenActionsConfig.standardUserDaysBetweenAccountActions;
actionType = AccountActionType.upgrade;

// todo(fulleni): once account upgrade feature is implemented,
// uncomment the action type line
// and remove teh null return line.

// actionType = AccountActionType.upgrade;
return null;
} else {
// No account actions for premium users or other roles for now
return null;
Expand Down
Loading