Update process_approval_transaction function

Update the `process_approval_transaction` function to utilize the new `error_code` and `item_details` returned by the enhanced `validate_submission_items_for_approval` function. This will improve error handling and debugging by providing more specific information when validation fails.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-07 19:41:18 +00:00
parent 6731e074a7
commit eccbe0ab1f
2 changed files with 251 additions and 0 deletions

View File

@@ -6458,9 +6458,11 @@ export type Database = {
validate_submission_items_for_approval: {
Args: { p_item_ids: string[] }
Returns: {
error_code: string
error_message: string
invalid_item_id: string
is_valid: boolean
item_details: Json
}[]
}
}