Log error when query is empty, return empty array.
Trigger event when sync is successful