pub async fn generate_and_insert(
conn: &mut PgConnection,
user_id: Uuid,
name_on_certificate: &str,
certificate_configuration_id: Uuid,
) -> ModelResult<GeneratedCertificate>
Expand description
Verifies that the user has completed the given module and creates the certificate in the database.