Refactored db directory
This commit is contained in:
@@ -6,7 +6,7 @@ use serde::{Serialize, Deserialize};
|
||||
use serenity::model::prelude::{GuildChannel, ChannelType};
|
||||
use siren::ServiceError;
|
||||
|
||||
use crate::{AppState, bot::commands::audio::{play::play_track, join}, db::guilds::QueryGuild, auth::{JwtAuth, verify_role}};
|
||||
use crate::{AppState, bot::commands::audio::{play::play_track, join}, storage::guilds::QueryGuild, auth::{JwtAuth, verify_role}};
|
||||
|
||||
#[get("/guilds")]
|
||||
async fn get_guilds(data: web::Data<Arc<AppState>>, auth: JwtAuth) -> HttpResponse {
|
||||
|
||||
@@ -10,7 +10,7 @@ use siren::ServiceError;
|
||||
use songbird::{EventHandler, Songbird};
|
||||
|
||||
use crate::bot::commands::audio::{leave, add_song, get_songbird};
|
||||
use crate::db::guilds::QueryGuild;
|
||||
use crate::storage::guilds::QueryGuild;
|
||||
|
||||
use super::{create_response, edit_response, join_by_user};
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ use serenity::builder::CreateApplicationCommand;
|
||||
use serenity::model::application::interaction::application_command::ApplicationCommandInteraction;
|
||||
use songbird::Songbird;
|
||||
|
||||
use crate::db::guilds::InsertGuild;
|
||||
use crate::storage::guilds::InsertGuild;
|
||||
|
||||
use super::{get_songbird, create_response, edit_response};
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ use serenity::model::gateway::Ready;
|
||||
use serenity::model::channel::Message;
|
||||
use serenity::prelude::*;
|
||||
|
||||
use crate::db::guilds::InsertGuild;
|
||||
use crate::storage::guilds::InsertGuild;
|
||||
|
||||
use super::commands;
|
||||
use super::commands::audio::create_response;
|
||||
|
||||
Reference in New Issue
Block a user