@@ -118,7 +118,7 @@ sub list_GET
118
118
119
119
my $db = $c -> dbis;
120
120
121
- my $auth_users_id = $c -> stash-> { api_auth }-> { auth_users_id } ;
121
+ my $auth_users_id = $c -> stash-> { api_auth }-> id() ;
122
122
123
123
my $topics = _get_topics_list( $db , $c -> req-> params, $auth_users_id );
124
124
@@ -137,7 +137,7 @@ sub single_GET
137
137
{
138
138
my ( $self , $c , $topics_id ) = @_ ;
139
139
140
- my $auth_users_id = $c -> stash-> { api_auth }-> { auth_users_id } ;
140
+ my $auth_users_id = $c -> stash-> { api_auth }-> id() ;
141
141
142
142
my $topics = _get_topics_list( $c -> dbis, { topics_id => $topics_id }, $auth_users_id );
143
143
@@ -238,7 +238,7 @@ sub create_GET
238
238
my $media_ids = $data -> { media_ids } || [];
239
239
my $media_tags_ids = $data -> { media_tags_ids } || [];
240
240
241
- my $auth_users_id = $c -> stash-> { api_auth }-> { auth_users_id } ;
241
+ my $auth_users_id = $c -> stash-> { api_auth }-> id() ;
242
242
243
243
_validate_max_stories( $db , $data -> { max_stories }, $auth_users_id );
244
244
$data -> { max_stories } ||= 100_000;
@@ -335,7 +335,7 @@ sub update_PUT
335
335
$update -> { is_public } = normalize_boolean_for_db( $update -> { is_public } );
336
336
$update -> { solr_seed_query_run } = normalize_boolean_for_db( $update -> { solr_seed_query_run } );
337
337
338
- my $auth_users_id = $c -> stash-> { api_auth }-> { auth_users_id } ;
338
+ my $auth_users_id = $c -> stash-> { api_auth }-> id() ;
339
339
340
340
_validate_max_stories( $db , $data -> { max_stories }, $auth_users_id ) if ( defined ( $data -> { max_stories } ) );
341
341
@@ -384,7 +384,7 @@ sub spider_GET
384
384
my $db = $c -> dbis;
385
385
386
386
my $topic = $db -> require_by_id( ' topics' , $topics_id );
387
- my $auth_users_id = $c -> stash-> { api_auth }-> { auth_users_id } ;
387
+ my $auth_users_id = $c -> stash-> { api_auth }-> id() ;
388
388
389
389
if ( my $job_state = _get_user_public_queued_job( $db , $auth_users_id ) )
390
390
{
0 commit comments