MCPcopy Create free account
hub / github.com/gogs/gogs / GetUploadsByUUIDs

Function GetUploadsByUUIDs

internal/database/repo_editor.go:463–471  ·  view source on GitHub ↗
(uuids []string)

Source from the content-addressed store, hash-verified

461}
462
463func GetUploadsByUUIDs(uuids []string) ([]*Upload, error) {
464 if len(uuids) == 0 {
465 return []*Upload{}, nil
466 }
467
468 // Silently drop invalid uuids.
469 uploads := make([]*Upload, 0, len(uuids))
470 return uploads, x.In("uuid", uuids).Find(&uploads)
471}
472
473func DeleteUploads(uploads ...*Upload) (err error) {
474 if len(uploads) == 0 {

Callers 1

UploadRepoFilesMethod · 0.85

Calls 2

InMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected