fix bug
This commit is contained in:
parent
1c65761aff
commit
54638f5134
@ -195,7 +195,7 @@ impl CommandHandler {
|
||||
|
||||
let data = match bot_s
|
||||
.controller
|
||||
.get_records_by_userid_with_pagination(someone.id, page)
|
||||
.get_records_by_userid_with_pagination(someone.tg_uid, page)
|
||||
.await
|
||||
{
|
||||
Ok(data) => data,
|
||||
|
@ -98,7 +98,7 @@ impl Controller {
|
||||
transaction: &DatabaseTransaction,
|
||||
) -> Result<Option<UserModel>, DbErr> {
|
||||
User::find()
|
||||
.filter(UserColumn::Id.eq(user_id.to_owned()))
|
||||
.filter(UserColumn::TgUid.eq(user_id.to_owned()))
|
||||
.one(transaction)
|
||||
.await
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user