-
Notifications
You must be signed in to change notification settings - Fork 954
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
feature/archive account #4350
feature/archive account #4350
Conversation
sywhb
commented
Aug 29, 2024
- allow omnivore_admin to delete filters
- add archived status to user account
- redirect archived user to /export page when login
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -40,12 +40,11 @@ export const refreshAllFeeds = async (db: DataSource): Promise<boolean> => { | |||
FROM | |||
omnivore.subscriptions s | |||
INNER JOIN | |||
omnivore.user u ON u.id = s.user_id | |||
omnivore.user u ON u.id = s.user_id AND u.status = $4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optimized the query a little bit here
@@ -1039,7 +1039,10 @@ export const updateLibraryItemReadingProgress = async ( | |||
} | |||
|
|||
const updatedItem = result[0][0] | |||
await pubsub.entityUpdated<ItemEvent>(EntityType.ITEM, updatedItem, userId) | |||
if (updatedItem.readingProgressBottomPercent === 100) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I try to reduce the number of PAGE_UPDATE event being sent so we only send the event when the item is fully read or reset to unread
89c254d
to
43fb698
Compare
@@ -158,15 +157,16 @@ export async function handleGoogleWebAuth( | |||
} | |||
} | |||
|
|||
let redirectURL = `${baseURL()}${ | |||
user.status === StatusType.Archived ? '/export' : DEFAULT_HOME_PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to /account-archived
.
Just one small change on the path |