wip: currently rewriting the project as a full stack application tangled.org/kacaii.dev/sigo
gleam

:bug: reverse the condition for a user to be notified

+2 -4
+2 -4
src/app/web/socket.gleam
··· 200 200 ) 201 201 202 202 msg.OccurrenceCreated(id:, category:) -> { 203 - use <- bool.guard( 204 - when: list.any(state.subscribed, fn(sub) { sub == category }), 205 - return: mist.continue(state), 206 - ) 203 + let found = list.any(state.subscribed, fn(sub) { sub == category }) 204 + use <- bool.guard(when: !found, return: mist.continue(state)) 207 205 208 206 send_envelope( 209 207 state:,