This commit is contained in:
senset 2022-06-30 13:02:10 +08:00
parent 1c65761aff
commit 54638f5134
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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
}