0

preview supabase event

by
Published Dec 18, 2022

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

Script supabase Verified

The script

Submitted by hugo989 Typescript (fetch-only)
Verified 10 days ago
1
//native
2

3
export async function main(
4
  type: string,
5
  table: string,
6
  record: object,
7
  schema: string,
8
  old_record: object,
9
) {
10
  console.log("type", type);
11
  console.log("table", table);
12
  console.log("record", record);
13
  console.log("schema", schema);
14
  console.log("old_record", old_record);
15
  return {
16
    type,
17
    table,
18
    record,
19
    schema,
20
    old_record,
21
  };
22
}
23

Other submissions
  • Submitted by mrl5 Deno
    Created 402 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