hydra-notify: move buildFinished query in to the function impl

This is more consistent with the other event handlers, of dealing with IDs and not objects.

Created by  Graham Christensen  on August 6, 2021
GE7LFZHQHT2ENWSZRNF6KWNBRXTHLA2SQGHT5ARACU4CZWDPWOZQC
Change contents