Skip to content

Conversation

@shepilov
Copy link
Contributor

Extended antivirus trigger to scan files when content is updated (new version uploaded), not just on file creation

@shepilov shepilov requested a review from a team as a code owner December 17, 2025 11:01
Comment on lines +61 to +63
if doc.Type != consts.FileType {
return false
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems unnecessary since vfs.FileDoc only stores files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm, why the ndo we have this check in couchdb_indexer.go?

# Conflicts:
#	worker/antivirus/antivirus_test.go
@shepilov shepilov force-pushed the antivirus_scan_of_file_update branch from 27f799e to 4835d77 Compare January 5, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants