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

Commit

Permalink
Make flags empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jay3332 authored Nov 26, 2021
1 parent ad3d1ee commit 3a2d4c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ferrischat_webserver/src/invites/use_invite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ pub async fn use_invite(req: HttpRequest, auth: crate::Authorization) -> impl Re
};

let guild_obj = match sqlx::query!(
"SELECT owner_id, name, flags FROM guilds WHERE id = $1",
"SELECT owner_id, name FROM guilds WHERE id = $1",
invite.guild_id
)
.fetch_one()
Expand All @@ -325,7 +325,7 @@ pub async fn use_invite(req: HttpRequest, auth: crate::Authorization) -> impl Re
channels: None,
members: None,
roles: None,
flags: GuildFlags::from_bits_truncate(x.flags),
flags: GuildFlags::empty(),
},
Err(e) => {
return HttpResponse::InternalServerError().json(InternalServerErrorJson {
Expand Down

0 comments on commit 3a2d4c8

Please sign in to comment.