File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 44
55import 'package:pub_dev/package/backend.dart' ;
66
7+ import '../../account/backend.dart' ;
78import 'actions.dart' ;
89
910final packageInfo = AdminAction (
@@ -27,11 +28,20 @@ Loads and displays the package information.
2728 throw NotFoundException .resource (package);
2829 }
2930
31+ final uploaderIds = p.uploaders;
32+ List <String >? uploaderEmails;
33+ if (uploaderIds != null ) {
34+ uploaderEmails = (await accountBackend.getEmailsOfUserIds (uploaderIds))
35+ .nonNulls
36+ .toList ();
37+ }
38+
3039 return {
3140 'package' : {
3241 'name' : p.name,
3342 'created' : p.created? .toIso8601String (),
3443 'publisherId' : p.publisherId,
44+ 'uploaders' : uploaderEmails,
3545 'latestVersion' : p.latestVersion,
3646 'isModerated' : p.isModerated,
3747 if (p.moderatedAt != null )
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ void main() {
2323 'name' : 'oxygen' ,
2424 'created' : isNotEmpty,
2525 'publisherId' : null ,
26+ 'uploaders' : [
'[email protected] ' ],
2627 'latestVersion' : '1.2.0' ,
2728 'isModerated' : false ,
2829 }
You can’t perform that action at this time.
0 commit comments