pub async fn verification_exists(pool: &DBPool, verify_id: String) -> Result<bool> {
        prune_verifications(pool).await?;

        let res = generic_service_err!(
            sqlx::query_file_as!(Verify, "sql/verify/get_verification.sql", verify_id)
            .fetch_all(pool).await,
            "Failed to check if verification record exists");

        Ok(res.len() == 1)
    }
/// Returns whether or not a verification record exists
/// 
/// # Arguments
/// 
/// * `pool` - The database pool
/// * `verify_id` - The ID of the verification record
Returns whether or not a verification record exists
Returns whether or not a verification record exists
pub async fn verification_exists(pool: &DBPool, verify_id: String) -> Result<bool> {
        prune_verifications(pool).await?;
        let res = generic_service_err!(
            sqlx::query_file_as!(Verify, "sql/verify/get_verification.sql", verify_id)
            .fetch_all(pool).await,
            "Failed to check if verification record exists");
        Ok(res.len() == 1)
    }
pub async fn verification_exists ( pool : & DBPool , verify_id : String ) -> Result < bool > { prune_verifications ( pool ) . await ? ; let res = generic_service_err ! ( sqlx query_file_as ( Verify " " verify_id ) fetch_all ( pool ) await " " ) ; Ok ( res . len ( ) == 1 ) }
Returns whether or not a verification record exists
Returns whether or not a verification record exists
pool
&DBPool
verify_id
String
pool
&DBPool
verify_id
String