-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #720 from ChicagoWorldcon/staging
2.1.4
- Loading branch information
Showing
8 changed files
with
308 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
class PublishedSessionsController < ResourceController | ||
SERIALIZER_CLASS = 'PublishedSessionSerializer'.freeze | ||
POLICY_CLASS = 'PublishedSessionPolicy'.freeze | ||
# | ||
|
||
def resync_airmeet | ||
authorize current_person, policy_class: policy_class | ||
|
||
|
||
#TODO stop mixing up published session and session for integration purposes | ||
session = PublishedSession.find params[:published_session_id] | ||
|
||
# makes the information in the airmeet sync record match the current session record | ||
# NOTE: DOES NOT ACTUALLY DO A SYNC TO AIRMEET | ||
if session | ||
AirmeetApiService.session_to_airmeet(session, true); | ||
# clumsily reload person after they are updated | ||
session = PublishedSession.find params[:published_session_id] | ||
end | ||
|
||
render_object(session) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.