Skip to content

Commit

Permalink
Set POST method to SyncRegistrarSheetAction invocation (#2580)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkach authored Oct 2, 2024
1 parent 0ef8984 commit cacc900
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static google.registry.model.common.FeatureFlag.isActiveNow;
import static google.registry.persistence.transaction.TransactionManagerFactory.tm;
import static google.registry.request.Action.Method.GET;
import static google.registry.request.Action.Method.POST;
import static jakarta.servlet.http.HttpServletResponse.SC_BAD_REQUEST;
import static jakarta.servlet.http.HttpServletResponse.SC_FORBIDDEN;
import static jakarta.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
Expand Down Expand Up @@ -196,7 +197,8 @@ protected void sendExternalUpdates(
// there's an update besides the lastUpdateTime
cloudTasksUtils.enqueue(
SyncRegistrarsSheetAction.QUEUE,
cloudTasksUtils.createTask(SyncRegistrarsSheetAction.class, GET, ImmutableMultimap.of()));
cloudTasksUtils.createTask(
SyncRegistrarsSheetAction.class, POST, ImmutableMultimap.of()));
}

String environment = Ascii.toLowerCase(String.valueOf(RegistryEnvironment.get()));
Expand All @@ -208,10 +210,10 @@ protected void sendExternalUpdates(
registrar.getRegistrarName(), registrar.getRegistrarId(), environment),
String.format(
"""
The following changes were made in registry %s environment to the registrar %s by\
%s:
The following changes were made in registry %s environment to the registrar %s by\
%s:
%s""",
%s""",
environment,
registrar.getRegistrarId(),
consoleApiParams.authResult().userIdForLogging(),
Expand Down

0 comments on commit cacc900

Please sign in to comment.