fix missing borrow

This commit is contained in:
Aiden McClelland
2021-09-13 15:24:31 -06:00
committed by Aiden McClelland
parent c75ac3ec62
commit 80cbca25b9

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(|| {