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 let data = match bot_s
.controller .controller
.get_records_by_userid_with_pagination(someone.id, page) .get_records_by_userid_with_pagination(someone.tg_uid, page)
.await .await
{ {
Ok(data) => data, Ok(data) => data,

View File

@ -98,7 +98,7 @@ impl Controller {
transaction: &DatabaseTransaction, transaction: &DatabaseTransaction,
) -> Result<Option<UserModel>, DbErr> { ) -> Result<Option<UserModel>, DbErr> {
User::find() User::find()
.filter(UserColumn::Id.eq(user_id.to_owned())) .filter(UserColumn::TgUid.eq(user_id.to_owned()))
.one(transaction) .one(transaction)
.await .await
} }