Hi @ttwellmann,
This looks similar to this post. There’s a sample code in the comments and a suggested approach when injecting contentService.
If I assumed incorrectly and the link is not relevant, kindly post your class and the error you are getting. Thanks.
Cheers,
Ian