fix(media-library): update username references to name in media asset queries
Some checks failed
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Successful in 34s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 10s
Test Suite / playwright-tests (push) Failing after 1m1s
Some checks failed
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Successful in 34s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 10s
Test Suite / playwright-tests (push) Failing after 1m1s
This commit is contained in:
parent
f544975a6c
commit
fff30b49e1
|
|
@ -1671,7 +1671,7 @@ def get_legacy_rights_assets(
|
|||
f"""
|
||||
SELECT ma.id, ma.original_filename, ma.visibility, ma.rights_status,
|
||||
ma.created_at, ma.uploaded_by_profile_id,
|
||||
p.username AS uploader_username
|
||||
p.name AS uploader_name
|
||||
FROM media_assets ma
|
||||
LEFT JOIN profiles p ON p.id = ma.uploaded_by_profile_id
|
||||
WHERE {where}
|
||||
|
|
@ -1733,7 +1733,7 @@ def get_media_asset_journal(
|
|||
d.contains_third_party_content, d.third_party_rights_confirmed,
|
||||
d.third_party_rights_context,
|
||||
d.declared_by_profile_id,
|
||||
p.username AS declared_by_username,
|
||||
p.name AS declared_by_name,
|
||||
p.email AS declared_by_email
|
||||
FROM media_asset_rights_declarations d
|
||||
LEFT JOIN profiles p ON p.id = d.declared_by_profile_id
|
||||
|
|
|
|||
|
|
@ -1419,7 +1419,7 @@ export default function MediaLibraryPage() {
|
|||
) : (
|
||||
<div className="media-library__journal-list">
|
||||
{journalModal.declarations.map((d) => {
|
||||
const byLabel = d.declared_by_username || d.declared_by_email
|
||||
const byLabel = d.declared_by_name || d.declared_by_email
|
||||
|| (d.declared_by_profile_id ? `Profil #${d.declared_by_profile_id}` : '—')
|
||||
return (
|
||||
<div key={d.id} className="media-library__journal-entry">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user