fix: use uid instead of uid_number

This commit is contained in:
silver 2023-07-30 00:33:08 +01:00
parent 3a6325c722
commit b1fd0432ec

View file

@ -226,7 +226,7 @@ async fn get_max_uid_number(db: &Pool<Sqlite>) -> i64 {
r#"
SELECT *
FROM accounts
ORDER BY uid_number DESC
ORDER BY uid DESC
LIMIT 1
"#,
)
@ -234,7 +234,7 @@ async fn get_max_uid_number(db: &Pool<Sqlite>) -> i64 {
.await
{
if !results.is_empty() {
return results[0].uid_number + 1;
return results[0].uid + 1;
}
}