update schema for new price feed subscription migration

This commit is contained in:
Taka Goto 2018-09-26 11:45:35 -05:00
parent 9b39843b03
commit 369939ad84

View File

@ -46,7 +46,8 @@ CREATE FUNCTION public.notify_pricefeed() RETURNS trigger
BEGIN
PERFORM pg_notify(
CAST('postgraphile:price_feed' AS text),
row_to_json(NEW)::text);
json_build_object('__node__', json_build_array('price_feeds', NEW.id))::text
);
RETURN NEW;
END;
$$;