fix missing borrow

This commit is contained in:
Aiden McClelland
2021-09-13 15:24:31 -06:00
parent 4ad17979b7
commit 4d783e68ae

View File

@@ -30,7 +30,7 @@ pub async fn synchronize_all(ctx: &RpcContext) -> Result<(), Error> {
let mut db = ctx.db.handle();
let model = crate::db::DatabaseModel::new()
.package_data()
.idx_model(id)
.idx_model(&id)
.check(&mut db)
.await?
.ok_or_else(|| {