Self harm

So I relapsed.... I haven’t harmed myself in a year and I just ruined it again. I thought I was past all of this. When will it end?