MCPcopy Create free account
hub / github.com/Botloader/botloader / del_all_sessions

Method del_all_sessions

components/stores/src/web.rs:225–234  ·  view source on GitHub ↗
(&self, user_id: Id<UserMarker>)

Source from the content-addressed store, hash-verified

223 }
224
225 pub async fn del_all_sessions(&self, user_id: Id<UserMarker>) -> Result<(), Error> {
226 sqlx::query!(
227 "DELETE FROM discord_oauth_tokens WHERE user_id= $1",
228 user_id.get() as i64
229 )
230 .execute(&self.pool)
231 .await?;
232
233 Ok(())
234 }
235}
236
237struct DbOauthToken {

Callers 2

del_all_sessionsFunction · 0.80
check_broken_sessionFunction · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected