Fix field name

This commit is contained in:
Daniel 2024-10-20 12:55:24 -04:00
parent 9f2ddada28
commit 5cb5db019f

View file

@ -79,7 +79,7 @@ BEGIN
SELECT tgl.system_id, tgl.tgid, tgl.name, tgl.alpha_tag FROM talkgroups_learned tgl WHERE tgl.system_id = NEW.system AND tgl.tgid = NEW.talkgroup SELECT tgl.system_id, tgl.tgid, tgl.name, tgl.alpha_tag FROM talkgroups_learned tgl WHERE tgl.system_id = NEW.system AND tgl.tgid = NEW.talkgroup
) THEN ) THEN
INSERT INTO talkgroups_learned(system_id, tgid, name, alpha_tag) VALUES( INSERT INTO talkgroups_learned(system_id, tgid, name, alpha_tag) VALUES(
NEW.system, NEW.talkgroup, NEW.tg_label, NEW.alpha_tag NEW.system, NEW.talkgroup, NEW.tg_label, NEW.tg_alpha_tag
) ON CONFLICT DO NOTHING; ) ON CONFLICT DO NOTHING;
END IF; END IF;
RETURN NEW; RETURN NEW;