Move email provider settings to Integrasi tab and fix database schema
- Move Mailketing API configuration from NotifikasiTab to IntegrasiTab - Remove email provider settings from NotifikasiTab, add info card - Update IntegrasiTab to save email settings to notification_settings table - Add test email functionality to Integrasi tab - Fix database schema compatibility with new email settings - Remove GitHub remote, keep only Gitea remote - Clean up unused imports and variables 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
41
upload-function-code.sh
Executable file
41
upload-function-code.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
SUPABASE_URL="https://lovable.backoffice.biz.id"
|
||||
SERVICE_ROLE_KEY="$SUPABASE_ACCESS_TOKEN"
|
||||
|
||||
# Function to upload code to edge function
|
||||
upload_function() {
|
||||
local func_name=$1
|
||||
echo "Uploading code for $func_name..."
|
||||
|
||||
if [ -f "supabase/functions/$func_name/index.ts" ]; then
|
||||
# Read the function content
|
||||
FUNCTION_CONTENT=$(cat "supabase/functions/$func_name/index.ts")
|
||||
|
||||
# Update the function with code (using base64 encoding)
|
||||
ENCODED_CONTENT=$(echo "$FUNCTION_CONTENT" | base64)
|
||||
|
||||
# Upload the function code
|
||||
curl -X PUT "$SUPABASE_URL/rest/v1/functions/$func_name/body" \
|
||||
-H "Authorization: Bearer $SERVICE_ROLE_KEY" \
|
||||
-H "apikey: $SERVICE_ROLE_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"body\": \"$ENCODED_CONTENT\"
|
||||
}"
|
||||
|
||||
echo "Code uploaded for $func_name"
|
||||
else
|
||||
echo "Function file not found: $func_name"
|
||||
fi
|
||||
}
|
||||
|
||||
# Upload code for all functions
|
||||
upload_function "pakasir-webhook"
|
||||
upload_function "send-test-email"
|
||||
upload_function "create-meet-link"
|
||||
upload_function "send-consultation-reminder"
|
||||
upload_function "send-notification"
|
||||
upload_function "daily-reminders"
|
||||
|
||||
echo "All function codes uploaded!"
|
||||
Reference in New Issue
Block a user