Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
WellNumber validation for crystal wells and other minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Feb 22, 2024
1 parent c076e68 commit 649671b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/crystal_library/src/entities/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// The crystal plates module
/// The table storing crystal plate information
pub mod crystal_plates;
/// The crystal wells modules
/// The table storing crystal well information
pub mod crystal_wells;
2 changes: 1 addition & 1 deletion backend/crystal_library/src/graphql/crystal_wells_res.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl CrystalWellsMutation {
&self,
ctx: &Context<'_>,
plate_id: Uuid,
well_number: i16,
#[graphql(validator(minimum = 1, maximum = 288))] well_number: i16,
) -> async_graphql::Result<crystal_wells::Model> {
let operator_id =
subject_authorization!("xchemlab.crystal_library.write_crystal_wells", ctx).await?;
Expand Down
4 changes: 2 additions & 2 deletions backend/crystal_library/src/graphql/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// The cyrstal plates resolver module
/// A collection of resolvers relating to crystal plates
pub mod crystal_plates_res;
/// The cyrstal wells resolver module
/// A collection of resolvers relating to crystal wells
pub mod crystal_wells_res;

use async_graphql::{EmptySubscription, MergedObject, Schema, SchemaBuilder};
Expand Down

0 comments on commit 649671b

Please sign in to comment.