preview supabase event ( supabase)
One script reply has been approved by the moderators Verified

Created by mrl5 96 days ago Viewed 152 times 0 Points

Returns supabase event. It requires setting up Supabase Database Webhook with Windmill Webhook URL and Windmill token

No comments yet

Login to be able to comment
Points: 0
deno
One script reply has been approved by the moderators
Ap­pro­ved
export async function main(
  type: string,
  table: string,
  record: object,
  schema: string,
  old_record: object,
) {
  console.log('type', type);
  console.log('table', table);
  console.log('record', record);
  console.log('schema', schema);
  console.log('old_record', old_record);
  return {
    type,
    table,
    record,
    schema,
    old_record,
  };
}

Submitted by mrl5 96 days ago

Edited 92 days ago

No comments yet

Login to be able to comment