media find

This commit is contained in:
CHIEFSOFT\ameye
2023-11-25 12:53:13 -05:00
parent 03c49a2b8c
commit b8998c6b25
2 changed files with 31 additions and 2 deletions
+11 -1
View File
@@ -74,7 +74,17 @@ long WrenchFindStoredMedia(CVars in, CVars &out) {
break;
case WRENCH_FILE_CONTRACTS:
snprintf(vname, sizeof (vname), "SELECT * FROM members WHERE id =1", in["file_uid"].c_str());
/*
wrenchboard=> select * from jobs_contract_message where msg_type ='FILE' limit 1;
id | member_id | contract | msg_type | message | status | created | uid
----+-----------+----------------+----------+------------------------+--------+----------------------------+--------------------------------------
5 | 1 | ABCDEFG0IJK002 | FILE | delivery-zip-files.zip | 1 | 2017-03-14 00:11:37.881015 | 7d347a17-9d4e-4067-a7a2-ba05c116626f
(1 row)
*/
snprintf(vname, sizeof (vname), "SELECT message AS saved_file_name, contract "
" FROM jobs_contract_message WHERE uid = '%s'", in["file_uid"].c_str());
break;
case WRENCH_FILE_FAMILY: