diff --git a/tests/resources/functions/dart.tar.gz b/tests/resources/functions/dart.tar.gz index d444518a92..3f1bc41544 100644 Binary files a/tests/resources/functions/dart.tar.gz and b/tests/resources/functions/dart.tar.gz differ diff --git a/tests/resources/functions/dart/main.dart b/tests/resources/functions/dart/main.dart index 8dbe1aa708..33c184d7bd 100644 --- a/tests/resources/functions/dart/main.dart +++ b/tests/resources/functions/dart/main.dart @@ -22,5 +22,5 @@ void main() { // Init SDK print(Platform.environment["APPWRITE_FUNCTION_ENV_VERSION"]); // print(result['$id']); print(Platform.environment["APPWRITE_FUNCTION_EVENT"]); - print(Platform.environment["APPWRITE_FUNCTION_EVENT_PAYLOAD"]); + print(Platform.environment["APPWRITE_FUNCTION_EVENT_DATA"]); } \ No newline at end of file diff --git a/tests/resources/functions/deno.tar.gz b/tests/resources/functions/deno.tar.gz index 47f04a14ed..5e57e3cfed 100644 Binary files a/tests/resources/functions/deno.tar.gz and b/tests/resources/functions/deno.tar.gz differ diff --git a/tests/resources/functions/deno/index.ts b/tests/resources/functions/deno/index.ts index 228842756b..ce043dc33a 100644 --- a/tests/resources/functions/deno/index.ts +++ b/tests/resources/functions/deno/index.ts @@ -20,4 +20,4 @@ console.log(Deno.env.get("APPWRITE_FUNCTION_ENV_NAME") || ''); console.log(Deno.env.get("APPWRITE_FUNCTION_ENV_VERSION") || ''); // console.log(result['$id']")); console.log(Deno.env.get("APPWRITE_FUNCTION_EVENT") || ''); -console.log(Deno.env.get("APPWRITE_FUNCTION_EVENT_PAYLOAD") || ''); \ No newline at end of file +console.log(Deno.env.get("APPWRITE_FUNCTION_EVENT_DATA") || ''); \ No newline at end of file diff --git a/tests/resources/functions/dotnet-3.1.tar.gz b/tests/resources/functions/dotnet-3.1.tar.gz index 16627e89ad..8ce777cec1 100644 Binary files a/tests/resources/functions/dotnet-3.1.tar.gz and b/tests/resources/functions/dotnet-3.1.tar.gz differ diff --git a/tests/resources/functions/dotnet-3.1/Program.cs b/tests/resources/functions/dotnet-3.1/Program.cs index ee5894aa7f..9c20ee9f97 100644 --- a/tests/resources/functions/dotnet-3.1/Program.cs +++ b/tests/resources/functions/dotnet-3.1/Program.cs @@ -22,7 +22,7 @@ namespace dotnet Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_ENV_NAME")); Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_ENV_VERSION")); Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_EVENT")); - Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_EVENT_PAYLOAD")); + Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_EVENT_DATA")); } } } diff --git a/tests/resources/functions/dotnet-5.0.tar.gz b/tests/resources/functions/dotnet-5.0.tar.gz index 7117cf924f..1e82fe8619 100644 Binary files a/tests/resources/functions/dotnet-5.0.tar.gz and b/tests/resources/functions/dotnet-5.0.tar.gz differ diff --git a/tests/resources/functions/dotnet-5.0/Program.cs b/tests/resources/functions/dotnet-5.0/Program.cs index ee5894aa7f..9c20ee9f97 100644 --- a/tests/resources/functions/dotnet-5.0/Program.cs +++ b/tests/resources/functions/dotnet-5.0/Program.cs @@ -22,7 +22,7 @@ namespace dotnet Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_ENV_NAME")); Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_ENV_VERSION")); Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_EVENT")); - Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_EVENT_PAYLOAD")); + Console.WriteLine(Environment.GetEnvironmentVariable("APPWRITE_FUNCTION_EVENT_DATA")); } } } diff --git a/tests/resources/functions/node.tar.gz b/tests/resources/functions/node.tar.gz index b132b0a130..9f0fa40f7d 100644 Binary files a/tests/resources/functions/node.tar.gz and b/tests/resources/functions/node.tar.gz differ diff --git a/tests/resources/functions/node/index.js b/tests/resources/functions/node/index.js index b2dbbba1a4..f994323807 100644 --- a/tests/resources/functions/node/index.js +++ b/tests/resources/functions/node/index.js @@ -20,4 +20,4 @@ console.log(process.env.APPWRITE_FUNCTION_ENV_NAME); console.log(process.env.APPWRITE_FUNCTION_ENV_VERSION); // console.log(result['$id']); console.log(process.env.APPWRITE_FUNCTION_EVENT); -console.log(process.env.APPWRITE_FUNCTION_EVENT_PAYLOAD); \ No newline at end of file +console.log(process.env.APPWRITE_FUNCTION_EVENT_DATA); \ No newline at end of file diff --git a/tests/resources/functions/php-fn.tar.gz b/tests/resources/functions/php-fn.tar.gz index b6906b615e..762072967e 100644 Binary files a/tests/resources/functions/php-fn.tar.gz and b/tests/resources/functions/php-fn.tar.gz differ diff --git a/tests/resources/functions/php-fn/index.php b/tests/resources/functions/php-fn/index.php index 387ba8eb9e..a1e20cc776 100644 --- a/tests/resources/functions/php-fn/index.php +++ b/tests/resources/functions/php-fn/index.php @@ -25,7 +25,7 @@ echo $_ENV['APPWRITE_FUNCTION_ENV_NAME']."\n"; echo $_ENV['APPWRITE_FUNCTION_ENV_VERSION']."\n"; // echo $result['$id']; echo $_ENV['APPWRITE_FUNCTION_EVENT']."\n"; -echo $_ENV['APPWRITE_FUNCTION_EVENT_PAYLOAD']."\n"; +echo $_ENV['APPWRITE_FUNCTION_EVENT_DATA']."\n"; echo 'data:'.$_ENV['APPWRITE_FUNCTION_DATA']."\n"; echo 'userId:'.$_ENV['APPWRITE_FUNCTION_USER_ID']."\n"; echo 'jwt:'.$_ENV['APPWRITE_FUNCTION_JWT']."\n"; diff --git a/tests/resources/functions/php.tar.gz b/tests/resources/functions/php.tar.gz index 751cd74f2a..3e4fb632b5 100644 Binary files a/tests/resources/functions/php.tar.gz and b/tests/resources/functions/php.tar.gz differ diff --git a/tests/resources/functions/php/index.php b/tests/resources/functions/php/index.php index 58f8004c12..66267a4fd1 100644 --- a/tests/resources/functions/php/index.php +++ b/tests/resources/functions/php/index.php @@ -25,4 +25,4 @@ echo $_ENV['APPWRITE_FUNCTION_ENV_NAME']."\n"; echo $_ENV['APPWRITE_FUNCTION_ENV_VERSION']."\n"; // echo $result['$id']; echo $_ENV['APPWRITE_FUNCTION_EVENT']."\n"; -echo $_ENV['APPWRITE_FUNCTION_EVENT_PAYLOAD']."\n"; \ No newline at end of file +echo $_ENV['APPWRITE_FUNCTION_EVENT_DATA']."\n"; \ No newline at end of file diff --git a/tests/resources/functions/python.tar.gz b/tests/resources/functions/python.tar.gz index dbb07c3f53..bbd1642001 100644 Binary files a/tests/resources/functions/python.tar.gz and b/tests/resources/functions/python.tar.gz differ diff --git a/tests/resources/functions/python/main.py b/tests/resources/functions/python/main.py index 5da8f43f77..c6b2f6e5dd 100644 --- a/tests/resources/functions/python/main.py +++ b/tests/resources/functions/python/main.py @@ -20,4 +20,4 @@ print(os.environ["APPWRITE_FUNCTION_ENV_NAME"]) print(os.environ["APPWRITE_FUNCTION_ENV_VERSION"]) # print(result["$id"]) print(os.environ["APPWRITE_FUNCTION_EVENT"]) -print(os.environ["APPWRITE_FUNCTION_EVENT_PAYLOAD"]) \ No newline at end of file +print(os.environ["APPWRITE_FUNCTION_EVENT_DATA"]) \ No newline at end of file diff --git a/tests/resources/functions/ruby.tar.gz b/tests/resources/functions/ruby.tar.gz index 62efb011c9..3e913f73fd 100644 Binary files a/tests/resources/functions/ruby.tar.gz and b/tests/resources/functions/ruby.tar.gz differ diff --git a/tests/resources/functions/ruby/app.rb b/tests/resources/functions/ruby/app.rb index f9c4b08e2f..6972d75d94 100644 --- a/tests/resources/functions/ruby/app.rb +++ b/tests/resources/functions/ruby/app.rb @@ -20,4 +20,4 @@ puts ENV["APPWRITE_FUNCTION_ENV_NAME"] puts ENV["APPWRITE_FUNCTION_ENV_VERSION"] # puts result["$id"] puts ENV["APPWRITE_FUNCTION_EVENT"] -puts ENV["APPWRITE_FUNCTION_EVENT_PAYLOAD"] \ No newline at end of file +puts ENV["APPWRITE_FUNCTION_EVENT_DATA"] \ No newline at end of file