Skip to content

Commit

Permalink
fix(dal): Change the signature of the default mgmt func code
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Nov 16, 2024
1 parent 1a1cae2 commit 49533dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dal/src/func/authoring/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ static DEFAULT_CODE_GENERATION_CODE: &str = include_str!("data/defaults/code_gen
static DEFAULT_QUALIFICATION_CODE: &str = include_str!("data/defaults/qualification.ts");
static DEFAULT_ACTION_CODE: &str = include_str!("data/defaults/action.ts");
static DEFAULT_AUTHENTICATION_CODE: &str = include_str!("data/defaults/authentication.ts");
static DEFAULT_MGMT_CODE: &str = include_str!("data/defaults/management.ts");

#[allow(dead_code)]
static DEFAULT_VALIDATION_CODE: &str = include_str!("data/defaults/validation.ts");
Expand All @@ -41,7 +42,7 @@ pub(crate) async fn create_management_func(
name.clone(),
FuncBackendKind::Management,
FuncBackendResponseType::Management,
DEFAULT_ACTION_CODE,
DEFAULT_MGMT_CODE,
DEFAULT_CODE_HANDLER,
)
.await?;
Expand Down
3 changes: 3 additions & 0 deletions lib/dal/src/func/authoring/data/defaults/management.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
async function main({ thisComponent, components }: Input): Promise<Output> {
throw new Error("unimplemented!");
}

0 comments on commit 49533dc

Please sign in to comment.