fix: force use of json in server functions
This commit is contained in:
1 parent
d32261fe09
commit
bbc19b88be
2 files changed
+51
-15
No files matched your search
@@ -1,6 +1,7 @@
|
||||
use leptos::prelude::*;
|
||||
use leptos::logging::log;
|
||||
use std::collections::HashMap;
|
||||
use leptos::server_fn::codec::Json;
|
||||
use crate::common::ValueType;
|
||||
|
||||
#[cfg(feature = "ssr")]
|
||||
@@ -45,7 +46,7 @@ pub async fn get_provider_contact(id: String) -> Result<HashMap<String, ValueTyp
|
||||
}
|
||||
}
|
||||
|
||||
#[server]
|
||||
#[server(input = Json)]
|
||||
pub async fn put_provider_contact(id: String, contact_info: HashMap<String, ValueType>) -> Result<(), ServerFnError> {
|
||||
use aws_sdk_dynamodb::error::ProvideErrorMetadata;
|
||||
|
||||
|
||||
Reference in new issue
Block a user