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

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

Created by mrl5 752 days ago Viewed 11314 times
0
Submitted by mrl5 Deno
Verified 752 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