Updating Code without Access to Device

Hey Particle Community. I have given away my photon to someone, and by accident, I made a mistake in the code. I have access to the device (i can flash it), but whenever I go onto my particle account, the device is off. Any idea how to update code when you don’t have access to the device or can’t predict when the device is going to be connected?

Thank you.

Can you ask them to get it online/in safe mode?
Otherwise, add it to a product and update it using the product deferred update functionality?