From 65bc82b760ef4929832ea8c9a3c9ed248aa16343 Mon Sep 17 00:00:00 2001 From: Sebastian Marcet Date: Mon, 22 Oct 2018 16:20:56 -0300 Subject: [PATCH] Fixed typos Change-Id: Ifcd2f3b9def44e6b78150517a1c5d7ee09a845a7 --- app/Http/routes.php | 24 ------------------- .../Main/DoctrineOrganizationRepository.php | 2 +- database/seeds/ApiScopesSeeder.php | 2 +- 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/app/Http/routes.php b/app/Http/routes.php index 6f2d8cc2..0b1faa83 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -82,30 +82,6 @@ Route::group([ Route::get('', 'OAuth2GroupsApiController@getAll'); }); - // teams - Route::group(['prefix'=>'teams'], function(){ - Route::get('', 'OAuth2TeamsApiController@getMyTeams'); - Route::post('', 'OAuth2TeamsApiController@addTeam'); - - Route::group(['prefix' => '{team_id}'], function () { - Route::get('', 'OAuth2TeamsApiController@getMyTeam'); - Route::put('', 'OAuth2TeamsApiController@updateTeam'); - Route::delete('', 'OAuth2TeamsApiController@deleteTeam'); - - Route::group(array('prefix' => 'messages'), function () { - Route::get('', 'OAuth2TeamsApiController@getMyTeamMessages'); - Route::post('', 'OAuth2TeamsApiController@postTeamMessage'); - }); - - Route::group(array('prefix' => 'members'), function () { - Route::group(['prefix' => '{member_id}'], function () { - Route::post('', 'OAuth2TeamsApiController@addMember2MyTeam'); - Route::delete('', 'OAuth2TeamsApiController@removedMemberFromMyTeam'); - }); - }); - }); - }); - // summits Route::group(array('prefix' => 'summits'), function () { diff --git a/app/Repositories/Main/DoctrineOrganizationRepository.php b/app/Repositories/Main/DoctrineOrganizationRepository.php index ce004d4c..f815654e 100644 --- a/app/Repositories/Main/DoctrineOrganizationRepository.php +++ b/app/Repositories/Main/DoctrineOrganizationRepository.php @@ -60,7 +60,7 @@ final class DoctrineOrganizationRepository { try { return $this->getEntityManager()->createQueryBuilder() - ->select("t") + ->select("o") ->from(\models\main\Organization::class, "o") ->where('UPPER(TRIM(o.name)) = UPPER(TRIM(:name))') ->setParameter('name', $name) diff --git a/database/seeds/ApiScopesSeeder.php b/database/seeds/ApiScopesSeeder.php index 0a5a9778..b9a591de 100644 --- a/database/seeds/ApiScopesSeeder.php +++ b/database/seeds/ApiScopesSeeder.php @@ -122,7 +122,7 @@ final class ApiScopesSeeder extends Seeder 'description' => 'Grants write access for Speakers Data', ], [ - 'name' => sprintf(SummitScopes::ReadSpeakersDataSpeakersData, $current_realm), + 'name' => sprintf(SummitScopes::ReadSpeakersData, $current_realm), 'short_description' => 'Read Speakers Data', 'description' => 'Grants read access for Speakers Data', ],