fix: only firing update status when image is not 'not-started'
This commit is contained in:
@ -111,7 +111,9 @@ $$ LANGUAGE plpgsql;
|
||||
CREATE OR REPLACE FUNCTION notify_new_processing_image_status()
|
||||
RETURNS TRIGGER AS $$
|
||||
BEGIN
|
||||
IF NEW.status <> 'not-started' THEN
|
||||
PERFORM pg_notify('new_processing_image_status', NEW.id::text || NEW.status::text);
|
||||
END IF;
|
||||
RETURN NEW;
|
||||
END
|
||||
$$ LANGUAGE plpgsql;
|
||||
|
Reference in New Issue
Block a user