This commit is contained in:
Geometrically
2021-01-01 09:27:37 -07:00
parent a40b9f4054
commit 4994064e6e
2 changed files with 2 additions and 4 deletions

View File

@@ -1,9 +1,6 @@
name: Docker image build
on:
push:
branches-ignore:
- master
pull_request:
env:
CARGO_TERM_COLOR: always

View File

@@ -7,8 +7,8 @@ use crate::{database, Pepper};
use actix_web::{delete, get, patch, web, HttpRequest, HttpResponse};
use serde::{Deserialize, Serialize};
use sqlx::PgPool;
use std::sync::Arc;
use std::borrow::Borrow;
use std::sync::Arc;
// TODO: this needs filtering, and a better response type
// Currently it only gives a list of ids, which have to be
@@ -634,6 +634,7 @@ pub struct DownloadRedirect {
}
// under /api/v1/version_file/{hash}/download
#[allow(clippy::await_holding_refcell_ref)]
#[get("{version_id}/download")]
pub async fn download_version(
req: HttpRequest,