Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package MetaCPAN::Server::Role::MapStarring; | ||
package MetaCPAN::Server::Role::Mapping; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
oalders
Member
|
||
|
||
use strict; | ||
use warnings; | ||
|
@@ -12,9 +12,8 @@ sub index_POST { | |
{ | ||
user => $c->user->id, | ||
author => $req->data->{author}, | ||
release => $req->data->{release}, | ||
module => $req->data->{module}, | ||
author => $req->data->{author}, | ||
release => $req->data->{release}, | ||
}, | ||
{ refresh => 1 } | ||
); | ||
|
@@ -33,11 +32,10 @@ sub index_DELETE { | |
->get( { user => $c->user->id, module => $module } ); | ||
if ($star) { | ||
$star->delete( { refresh => 1 } ); | ||
$self->status_ok( $c, entity => $star->meta->get_data($star) ); | ||
} | ||
else { | ||
$self->status_not_found( $c, message => 'Entity could not be found' ); | ||
return $self->status_ok( $c, entity => $star->meta->get_data($star) ); | ||
} | ||
return $self->status_not_found( $c, | ||
message => 'Entity could not be found' ); | ||
} | ||
|
||
1; |
@oalders Does this seem like a good enough name? I am not so good with the naming.. :)