Open mja00 opened 2 years ago
Looks for some reason the chan_mod variable isn't fully initialized when this function is called right after a moderator is created, which throws a fake unauthorized error.
chan_mod
https://github.com/Glimesh/glimesh.tv/blob/dev/lib/glimesh/stream_moderation.ex#L26= is the line that it happens on.
Not really too sure why this would return nil unless it's just too fast and the DB hasn't updated yet.
Looks for some reason the
chan_mod
variable isn't fully initialized when this function is called right after a moderator is created, which throws a fake unauthorized error.https://github.com/Glimesh/glimesh.tv/blob/dev/lib/glimesh/stream_moderation.ex#L26= is the line that it happens on.
Not really too sure why this would return nil unless it's just too fast and the DB hasn't updated yet.