Skip to content

Commit

Permalink
Allow metadata only uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Dec 6, 2024
1 parent 1bb559e commit d731b8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions internal/handlers/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ func CheckMyWork(w http.ResponseWriter, r *http.Request) {
}
}

if column == "File Path" {
model := ColumnValue("Object Model", header, row)
if strInSlice(model, []string{"Binary", "Video", "Page", "Image", "Digital Document"}) {
errors[i] = "Missing source file"
}
}
if column == "Resource Type" {
model := ColumnValue("Object Model", header, row)
if model != "Page" {
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func TestCheckMyWork(t *testing.T) {
{"foo", "Image", "foo", ""},
},
statusCode: http.StatusOK,
response: `{"D2":"Missing source file"}`,
response: `{}`,
},
{
name: "OK file",
Expand Down

0 comments on commit d731b8a

Please sign in to comment.