feat(#36): Notification rework with single and all comments mark as read
This commit is contained in:
@@ -12,9 +12,17 @@ export function useUser() {
|
||||
userId: string,
|
||||
email: string | null,
|
||||
emailOnFormCreated: boolean,
|
||||
emailOnFormSubmitted: boolean
|
||||
emailOnFormSubmitted: boolean,
|
||||
emailOnFormUpdated: boolean,
|
||||
emailOnCommentAdded: boolean
|
||||
): Promise<UserDto> {
|
||||
const updateDto: UpdateEmailPreferencesDto = { email, emailOnFormCreated, emailOnFormSubmitted }
|
||||
const updateDto: UpdateEmailPreferencesDto = {
|
||||
email,
|
||||
emailOnFormCreated,
|
||||
emailOnFormSubmitted,
|
||||
emailOnFormUpdated,
|
||||
emailOnCommentAdded
|
||||
}
|
||||
|
||||
return await userApi.updateEmailPreferences(userId, updateDto)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user