fix bug
This commit is contained in:
parent
1c65761aff
commit
54638f5134
@ -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,
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user