Discourse rebuild failing with TypeError: can't quote Array

Yes I just disabled discourse-ai and the instance is back up. Stupid I didn’t spot that error line before :man_facepalming: