mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-02 12:35:33 +00:00
Move database logic into submodule and do simple version check
This commit is contained in:
parent
a37bc3f81e
commit
81a566a097
7 changed files with 112 additions and 36 deletions
|
@ -115,9 +115,8 @@ pub async fn handle_ws(st: Arc<AppState>, ws: &mut WebSocket) -> Result<Infallib
|
|||
let auth = serde_json::from_str::<WithSig<AuthPayload>>(&payload)?;
|
||||
st.verify_signed_data(&auth)?;
|
||||
|
||||
st.conn
|
||||
.lock()
|
||||
.unwrap()
|
||||
st.db
|
||||
.get()
|
||||
.query_row(
|
||||
r"
|
||||
SELECT `uid`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue