From 1d81974c32ab572bfe7444dc1a65ffc92b13caaf Mon Sep 17 00:00:00 2001 From: ACoolName Date: Thu, 23 May 2024 02:32:07 +0300 Subject: [PATCH] finalized server actions --- src/actions.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/actions.tsx b/src/actions.tsx index 3ece50e..e3caacd 100644 --- a/src/actions.tsx +++ b/src/actions.tsx @@ -547,14 +547,14 @@ export const SERVER_ACTIONS: ActionInfo[] = [ response_action: "Ignore", args: { properties: { - username: { + Username: { type: "string", title: "Username", fetch_display_path: "Username", fetch_key_path: "Username", fetch_url: "/users" }, - permissions: { + Permissions: { type: "number", title: "Permissions", permissions: true, @@ -562,8 +562,11 @@ export const SERVER_ACTIONS: ActionInfo[] = [ }, type: "object", required: [ - "username" + "Username" ], + default: { + Permissions: 0 + }, title: "Set User Permissions", definitions: definitions, },