Connect to Lovable Cloud

The Lovable Cloud tool was approved and used to apply a migration. This migration fixes a critical bug in the composite submission approval process by resolving temporary references to actual entity IDs, ensuring correct foreign key population and data integrity.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-08 01:14:07 +00:00
parent 576899cf25
commit f294794763
2 changed files with 527 additions and 0 deletions

View File

@@ -6346,6 +6346,16 @@ export type Database = {
monitor_failed_submissions: { Args: never; Returns: undefined }
monitor_slow_approvals: { Args: never; Returns: undefined }
process_approval_transaction:
| {
Args: {
p_item_ids: string[]
p_moderator_id: string
p_request_id?: string
p_submission_id: string
p_submitter_id: string
}
Returns: Json
}
| {
Args: {
p_idempotency_key?: string
@@ -6381,6 +6391,10 @@ export type Database = {
Args: { p_credit_id: string; p_new_position: number }
Returns: undefined
}
resolve_temp_refs_for_item: {
Args: { p_item_id: string; p_submission_id: string }
Returns: Json
}
revoke_my_session: { Args: { session_id: string }; Returns: undefined }
revoke_session_with_mfa: {
Args: { target_session_id: string; target_user_id: string }