Open robb-j opened 2 years ago
When you do an auth message it should run a query to patch all existing logs with attendee=null with the new attendee id.
auth
attendee=null
Something like:
UPDATE logs SET attendee = {new_attendee} WHERE socket == {socket_id} AND attendee IS NULL
There should also be a migration to add an index to the relevant column so this is always fast
When you do an
auth
message it should run a query to patch all existing logs withattendee=null
with the new attendee id.Something like: