Chore: Deprecate FolderID in GetLibraryElementCommand (#77404)

This commit is contained in:
Kat Yang
2023-10-31 11:46:48 -04:00
committed by GitHub
parent 91398a173f
commit 87717849da
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -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)