Centralize PARAM_YEAR_MONTH into RequestParameters

Overall this ends up being nicer.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=181782569
This commit is contained in:
mcilwain 2018-01-12 13:08:02 -08:00 committed by Ben McIlwain
parent 264b4be966
commit 635edd0fb9
5 changed files with 11 additions and 6 deletions

View file

@ -15,6 +15,7 @@
package google.registry.billing;
import static google.registry.request.Action.Method.POST;
import static google.registry.request.RequestParameters.PARAM_YEAR_MONTH;
import static javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
import static javax.servlet.http.HttpServletResponse.SC_NOT_MODIFIED;
import static javax.servlet.http.HttpServletResponse.SC_NO_CONTENT;
@ -112,7 +113,7 @@ public class PublishInvoicesAction implements Runnable {
TaskOptions copyDetailTask =
TaskOptions.Builder.withUrl(CopyDetailReportsAction.PATH)
.method(TaskOptions.Method.POST)
.param(BillingModule.PARAM_YEAR_MONTH, yearMonth.toString());
.param(PARAM_YEAR_MONTH, yearMonth.toString());
QueueFactory.getQueue(BillingModule.CRON_QUEUE).add(copyDetailTask);
}
}