chore: change to production tables

This should be handled by environment variables in the future.
This commit is contained in:
alphafetus committed 2026-01-19 12:44:51 -05:00
1 parent 444e5ffb72
commit e508e0a916
5 files changed
+20 -15

No files matched your search

+5 -2
View File
@@ -12,13 +12,16 @@ use aws_sdk_dynamodb::{
Client as DynamoClient
};
#[cfg(feature = "ssr")]
use crate::utils::server::create_dynamo_client;
#[cfg(feature = "ssr")]
use std::sync::Arc;
#[server]
pub async fn create_dates(dates: Vec<DateInfo>) -> Result<(), ServerFnError> {
// Serialize and put dates into the database.
let client = expect_context::<Arc<DynamoClient>>();
let client = create_dynamo_client().await;
log!("Creating dates: {:?}", dates);
@@ -51,7 +54,7 @@ pub async fn create_dates(dates: Vec<DateInfo>) -> Result<(), ServerFnError> {
#[server]
pub async fn get_important_dates() -> Result<Vec<DateInfo>, ServerFnError> {
let client = expect_context::<Arc<DynamoClient>>();
let client = create_dynamo_client().await;
client
.scan()