fix: use uid instead of uid_number
This commit is contained in:
parent
3a6325c722
commit
b1fd0432ec
1 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ async fn get_max_uid_number(db: &Pool<Sqlite>) -> i64 {
|
||||||
r#"
|
r#"
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM accounts
|
FROM accounts
|
||||||
ORDER BY uid_number DESC
|
ORDER BY uid DESC
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
|
@ -234,7 +234,7 @@ async fn get_max_uid_number(db: &Pool<Sqlite>) -> i64 {
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
if !results.is_empty() {
|
if !results.is_empty() {
|
||||||
return results[0].uid_number + 1;
|
return results[0].uid + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue