Your device may be reset to the factory settings during the repair, which will delete all of your data. You should therefore always back up your data beforehand.