mirror of
https://github.com/hanzoai/notify.git
synced 2026-10-30 15:04:32 +00:00
Previous version preferred a channel-specific row but fell through to channel-agnostic when no match existed — so an SMS request could silently render an email template. Tighten so the lookup key is (tenant, name) when channel="" and (tenant, name, channel) when set, with no crossover. SMS in == SMS out; if there's no SMS template, error loud. Also collapses two near-identical FindRecordsByFilter calls into one with a conditional clause — single source of truth for the query.