Sentence correction: I confessed what I did yesterday night.

HI ,

“I confessed what i did yesterday night. the next time i will not reiterate the mistake again”.

Could you rectify any grammatical mistakes in the above sentences ?

Regards
Pavan

.
I confessed what I did last night. I will not make the mistake again.