[Fixed] Resources were not filtered by domainId during local query