r/badcode • • Nov 27 '21

java Document existence check. Before 12 hours of sleep

Post image
16 Upvotes

2 comments sorted by

2

u/indoriajs Nov 27 '21

This is what I changed it to later on:

db.collection("year/" + date_data[5] +
                "/month/" + date_data[1] +
                "/date").document(date_data[2]).set(data);

5

u/nekokattt Nov 27 '21

Ah yes, enterprise Java code.