This commit is contained in:
ntr committed 2022-12-27 13:07:07 +11:00
1 parent 57fefdc9e2
commit b86a4216cf
1 file changed
+4
+4
View File
@@ -12,6 +12,10 @@ export default function createNotify(log: Log, pg: Pg, events) {
const subscriber = createSubscriber({ connectionString: process.env.DATABASE_URL });
// pg has a hard limit of 8000B for the notification payload
// so we only receive the ids of the updated record
// and go fetch the whole thing to figure out who to notify
async function handleOffers(payload) {
const { action, id } = payload;
log.info({ channel: OFFERS_CHANNEL, action, id });