My Boyfriend cheated

So I recently found out that my boyfriend cheated on my because he was flirting with his Ex and he told me he wasn’t going to do it again, but i have also cheated on him about a year ago so I don’t know if i should just break up with him or stay with him

Need some advice