mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 10:01:08 +02:00
Bug fix: - ContactService.delete() now cleans up S3 photo before DB deletion (previously left orphaned files in storage) - ContactModule imports PhotoModule for dependency injection PhotoService improvements: - Use maxSizeBytes in upload() instead of manual validateFileSize() - Use getPublicUrl()/result.url instead of manual URL construction via getStorageConfig() + BUCKETS concatenation - Add cacheControl header for immutable photo assets (1 year) - Add upload hooks for structured logging via Logger - Add deletePhotoByUrl() for contact deletion cleanup - Add deleteAllUserPhotos() for account deletion via deleteByPrefix() - Store photos in 'photos' subfolder for cleaner key structure - Remove unused getStorageConfig/BUCKETS imports Test fix: - Add PhotoService mock to ContactService spec Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apps | ||
| docs | ||
| CLAUDE.md | ||
| package.json | ||