fixup initial role

This commit is contained in:
Brandon Thomas committed 2021-06-06 17:40:12 -04:00
1 parent bc3fee54d6
commit 8639d7b804
5 files changed
+1 -9

No files matched your search

@@ -21,8 +21,6 @@ use sqlx::mysql::MySqlDatabaseError;
use std::sync::Arc;
use crate::validations::check_for_slurs::contains_slurs;
const NEW_USER_ROLE: &'static str = "new-user";
#[derive(Deserialize)]
pub struct InferTtsRequest {
uuid_idempotency_token: String,
@@ -21,8 +21,6 @@ use sqlx::mysql::MySqlDatabaseError;
use std::sync::Arc;
use crate::util::random_prefix_crockford_token::random_prefix_crockford_token;
const NEW_USER_ROLE: &'static str = "new-user";
#[derive(Deserialize)]
pub struct UploadTtsModelRequest {
idempotency_token: String,
@@ -23,7 +23,7 @@ use crate::util::email_to_gravatar::email_to_gravatar;
use crate::validations::username_reservations::is_reserved_username;
use crate::util::random_prefix_crockford_token::random_prefix_crockford_token;
const NEW_USER_ROLE: &'static str = "new-user";
const NEW_USER_ROLE: &'static str = "user";
#[derive(Deserialize)]
pub struct CreateAccountRequest {
@@ -20,8 +20,6 @@ use sqlx::error::Error::Database;
use sqlx::mysql::MySqlDatabaseError;
use std::sync::Arc;
const NEW_USER_ROLE: &'static str = "new-user";
#[derive(Deserialize)]
pub struct InferW2lRequest {
w2l_template_token: Option<String>,
@@ -21,8 +21,6 @@ use sqlx::mysql::MySqlDatabaseError;
use std::sync::Arc;
use crate::util::random_prefix_crockford_token::random_prefix_crockford_token;
const NEW_USER_ROLE: &'static str = "new-user";
#[derive(Deserialize)]
pub struct UploadW2lTemplateRequest {
idempotency_token: String,