mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 02:27:52 +00:00 
			
		
		
		
	Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
		| @@ -7,19 +7,17 @@ | ||||
| namespace OpenWifi { | ||||
|  | ||||
|     void RESTAPI_openroaming_gr_list_certificates::DoGet() { | ||||
|  | ||||
|         auto Account = GetBinding("account",""); | ||||
|         auto Account = GetBinding("account"); | ||||
|         if(Account.empty()) { | ||||
|             return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters); | ||||
|         } | ||||
|  | ||||
|         auto Where = fmt::format(" accountId='{}'", Account); | ||||
|  | ||||
|         if(GetBoolParameter("countOnly")) { | ||||
|             return ReturnCountOnly(DB_.Count(Where)); | ||||
|         } | ||||
|  | ||||
|         std::vector<ProvObjects::GLBLRCertificateInfo>  Certificates; | ||||
|         std::vector<RecordType>  Certificates; | ||||
|         DB_.GetRecords(QB_.Offset,QB_.Limit,Certificates, Where); | ||||
|         return ReturnObject(Certificates); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959