Chore: Deprecate FolderID in GetLibraryElementCommand (#77404)
This commit is contained in:
@@ -277,6 +277,7 @@ func (l *LibraryElementService) getLibraryElements(c context.Context, store db.D
|
||||
builder.Write(", ? as folder_name ", cmd.FolderName)
|
||||
builder.Write(", '' as folder_uid ")
|
||||
builder.Write(getFromLibraryElementDTOWithMeta(store.GetDialect()))
|
||||
// nolint:staticcheck
|
||||
writeParamSelectorSQL(&builder, append(params, Pair{"folder_id", cmd.FolderID})...)
|
||||
builder.Write(" UNION ")
|
||||
builder.Write(selectLibraryElementDTOWithMeta)
|
||||
|
||||
@@ -233,8 +233,9 @@ type PatchLibraryElementCommand struct {
|
||||
// GetLibraryElementCommand is the command for getting a library element.
|
||||
type GetLibraryElementCommand struct {
|
||||
FolderName string
|
||||
FolderID int64
|
||||
UID string
|
||||
// Deprecated: use FolderUID instead
|
||||
FolderID int64
|
||||
UID string
|
||||
}
|
||||
|
||||
// SearchLibraryElementsQuery is the query used for searching for Elements
|
||||
|
||||
Reference in New Issue
Block a user