what might be my mistake
Discussion posts and replies are publicly visible
The underlying issue here is, that index() returns a copy of the date, but not a reference which you would need to store data to. Use dot-notation or angular brackets "[ ]" to get a reference you can use in a saveInto.