summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNEdit.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-07-18 15:48:32 +0200
committerYorhel <git@yorhel.nl>2009-07-18 15:48:32 +0200
commit5cbaaa3616a002a708af785bfa7e0774d50e0751 (patch)
treef82f4f03b439807b135cce2884e4e95ee71c8722 /lib/VNDB/Handler/VNEdit.pm
parent0a3ebf61cb7ea608f440029c2f138d97fb5a102a (diff)
Use PostgreSQL's LISTEN/NOTIFY to notify Multi::Anime for new anime
The notify is called from a trigger function, which is called on any UPDATE or INSERT INTO query of which the lastfetch column is NULL. This guarantees that anime info in the DB will always be updated, no matter how its inserted.
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r--lib/VNDB/Handler/VNEdit.pm1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm
index f0f12e88..8e4de7ec 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -92,7 +92,6 @@ sub edit {
}
$self->multiCmd("ircnotify v$nvid.$nrev");
- $self->multiCmd('anime') if $vid && $frm->{anime} ne $b4{anime} || !$vid && $frm->{anime};
return $self->resRedirect("/v$nvid.$nrev", 'post');
}