Commit 77b0973
committed
feat: Implement database setup script and user authentication
- Added a new setup script to initialize the database with an admin user, platform configuration, and storage configuration.
- Implemented migration logic for existing WhatsApp instance owners.
- Created utility functions for user authentication and role management in WhatsApp instances.
feat: Add message retention management features
- Introduced functions to set, remove, and retrieve message retention settings.
- Implemented role-based access control for modifying retention settings based on user roles.
feat: Implement media cleanup job
- Created a cleanup job to process and delete old media files from WhatsApp instances.
- Added functionality to delete files from both local storage and S3-compatible storage.
- Summarized cleanup results and logged errors for better visibility.
feat: Enhance storage management
- Developed a storage module to handle file uploads and deletions for local and S3 storage.
- Added S3 configuration validation and connection testing utilities.
chore: Add cleanup script for scheduled media cleanup
- Created a script to run the media cleanup job and log the results.1 parent 0470106 commit 77b0973
60 files changed
Lines changed: 10413 additions & 384 deletions
File tree
- .claude
- docs
- drizzle
- meta
- src
- app
- admin
- platform
- storage
- users
- api
- [whatsapp_slug]/[connection_slug]/sender
- admin/cleanup
- whatsapp
- [slug]
- chats
- [chatId]
- connections
- [connectionSlug]
- chats
- [chatId]
- edit
- create
- edit
- members
- settings/cleanup
- create
- components/ui
- db
- schema
- lib
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
0 commit comments