preview supabase event

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

Script supabase Verified

by mrl5 ยท 12/18/2022

The script

Submitted by mrl5 Deno
Verified 382 days ago
1
export async function main(
2
  type: string,
3
  table: string,
4
  record: object,
5
  schema: string,
6
  old_record: object,
7
) {
8
  console.log("type", type);
9
  console.log("table", table);
10
  console.log("record", record);
11
  console.log("schema", schema);
12
  console.log("old_record", old_record);
13
  return {
14
    type,
15
    table,
16
    record,
17
    schema,
18
    old_record,
19
  };
20
}
21