media find
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user