Skip to content

Commit 77b0973

Browse files
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/settings.local.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
"Bash(git commit:*)",
88
"Bash(pnpm run build:*)",
99
"Bash(npm run build:*)",
10-
"Bash(export PATH=\"$HOME/.local/share/pnpm:$PATH\")"
10+
"Bash(export PATH=\"$HOME/.local/share/pnpm:$PATH\")",
11+
"Bash(npm run db:generate:*)",
12+
"Bash(npx tsc:*)",
13+
"Bash(ls:*)",
14+
"Bash(bun add:*)",
15+
"Bash(npm cache clean:*)",
16+
"Bash(grep:*)",
17+
"Bash(bun run build:*)"
1118
]
1219
}
1320
}

0 commit comments

Comments
 (0)