mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 18:48:09 +00:00 
			
		
		
		
	Fixing list handlers
This commit is contained in:
		| @@ -10,17 +10,6 @@ | ||||
|  | ||||
| namespace OpenWifi{ | ||||
|     void RESTAPI_contact_list_handler::DoGet() { | ||||
|         if(!QB_.Select.empty()) { | ||||
|             return ReturnRecordList<decltype(DB_), | ||||
|             ProvObjects::Contact>("contacts",DB_,*this ); | ||||
|         } else if(QB_.CountOnly) { | ||||
|             Poco::JSON::Object  Answer; | ||||
|             auto C = DB_.Count(); | ||||
|             return ReturnCountOnly(C); | ||||
|         } else { | ||||
|             ContactDB::RecordVec Contacts; | ||||
|             DB_.GetRecords(QB_.Offset,QB_.Limit,Contacts); | ||||
|             return MakeJSONObjectArray("contacts", Contacts, *this); | ||||
|         } | ||||
|         return ListHandler<ContactDB>("contacts", DB_, *this); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959