mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 20:43:41 +00:00
misc fixes
This commit is contained in:
committed by
Aiden McClelland
parent
4de560c342
commit
824bccda0e
@@ -171,6 +171,6 @@ pub async fn ui(
|
||||
let ptr = "/ui".parse::<JsonPointer>()? + &pointer;
|
||||
Ok(WithRevision {
|
||||
response: (),
|
||||
revision: ctx.db.put(&ptr, &value, None).await?,
|
||||
revision: Some(ctx.db.put(&ptr, &value, None).await?),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -147,9 +147,9 @@ impl StaticFiles {
|
||||
}
|
||||
pub fn remote(id: &PackageId, version: &Version, icon_type: &str) -> Self {
|
||||
StaticFiles {
|
||||
license: format!("/registry/packages/{}/{}/LICENSE.md", id, version),
|
||||
instructions: format!("/registry/packages/{}/{}/INSTRUCTIONS.md", id, version),
|
||||
icon: format!("/registry/packages/{}/{}/icon.{}", id, version, icon_type),
|
||||
license: format!("/marketplace/package/{}/{}/LICENSE.md", id, version),
|
||||
instructions: format!("/marketplace/package/{}/{}/INSTRUCTIONS.md", id, version),
|
||||
icon: format!("/marketplace/package/{}/{}/icon.{}", id, version, icon_type),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@ use serde::{Deserialize, Serialize};
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct WithRevision<T> {
|
||||
pub response: T,
|
||||
pub revision: Arc<Revision>,
|
||||
pub revision: Option<Arc<Revision>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user