Compare commits
No commits in common. "d4a89cb0f86f307a79595eb91dfc2b8f107853b3" and "1d1f4896a46998ce8ab9a603d2f68003c44e6bb9" have entirely different histories.
d4a89cb0f8
...
1d1f4896a4
|
@ -35,11 +35,10 @@ notes
|
||||||
|
|
||||||
A commits type can be one of the following:
|
A commits type can be one of the following:
|
||||||
|
|
||||||
- **feat:** feature
|
- **feat**: feature
|
||||||
- **fix:** bugfix
|
- **fix**: bugfix
|
||||||
- **refactor:** nothing new added but code restructured, etc
|
- **refactor**: nothing new added but code restructured, etc
|
||||||
- **docs:** documentation changes
|
- **docs**: documentation changes
|
||||||
- **opt:** optimization changes
|
|
||||||
|
|
||||||
The commit scope is kinda free, but it's a good idea to use scopes, that have been used before.
|
The commit scope is kinda free, but it's a good idea to use scopes, that have been used before.
|
||||||
Scopes can be nested like this: `scope >> subscope >> subscope`.
|
Scopes can be nested like this: `scope >> subscope >> subscope`.
|
||||||
|
|
|
@ -19,7 +19,7 @@ impl Backend {
|
||||||
) -> anyhow::Result<anyhow::Result<Uuid, Error>> {
|
) -> anyhow::Result<anyhow::Result<Uuid, Error>> {
|
||||||
match sqlx::query_as!(
|
match sqlx::query_as!(
|
||||||
AuthTokensRow,
|
AuthTokensRow,
|
||||||
r#"SELECT * FROM AuthTokens WHERE token = ? LIMIT 1;"#,
|
r#"SELECT * FROM AuthTokens WHERE token = ?;"#,
|
||||||
token
|
token
|
||||||
)
|
)
|
||||||
.fetch_one(&self.pool)
|
.fetch_one(&self.pool)
|
||||||
|
@ -49,7 +49,7 @@ impl Backend {
|
||||||
) -> anyhow::Result<anyhow::Result<(), Error>> {
|
) -> anyhow::Result<anyhow::Result<(), Error>> {
|
||||||
match sqlx::query_as!(
|
match sqlx::query_as!(
|
||||||
InviteTokensRow,
|
InviteTokensRow,
|
||||||
r#"SELECT * FROM InviteTokens WHERE token = ? LIMIT 1;"#,
|
r#"SELECT * FROM InviteTokens WHERE token = ?;"#,
|
||||||
token
|
token
|
||||||
)
|
)
|
||||||
.fetch_one(&self.pool)
|
.fetch_one(&self.pool)
|
||||||
|
|
|
@ -90,7 +90,7 @@ impl Backend {
|
||||||
async fn get_user(&self, userid: Uuid) -> Result<Result<User, Error>> {
|
async fn get_user(&self, userid: Uuid) -> Result<Result<User, Error>> {
|
||||||
match sqlx::query_as!(
|
match sqlx::query_as!(
|
||||||
UsersRow,
|
UsersRow,
|
||||||
r#"SELECT * FROM Users WHERE userid = ? LIMIT 1;"#,
|
r#"SELECT * FROM Users WHERE userid = ?;"#,
|
||||||
userid.as_bytes().as_slice()
|
userid.as_bytes().as_slice()
|
||||||
)
|
)
|
||||||
.fetch_one(&self.pool)
|
.fetch_one(&self.pool)
|
||||||
|
|
Loading…
Reference in New Issue