Skip to content

Commit d01c766

Browse files
authored
Change update_since to updated_since (#72)
1 parent 171fdf6 commit d01c766

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api/api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ components:
124124
items:
125125
type: string
126126
description: config id
127-
update_since:
127+
updated_since:
128128
type: string
129129
format: date-time
130130
description: the date from which to watch config updates

src/handlers/configs_values.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ userver::formats::json::Value Handler::
4343
userver::formats::json::ValueBuilder configs_found{userver::formats::json::MakeObject()};
4444
for (const auto& config : configs) {
4545
if (config &&
46-
request_data.update_since.value_or(kMinTime).GetTimePoint() <= config->updated_at.GetUnderlying()) {
46+
request_data.updated_since.value_or(kMinTime).GetTimePoint() <= config->updated_at.GetUnderlying()) {
4747
configs_found[config->key.config_name] = config->config_value;
4848
switch (config->mode) {
4949
case uservice_dynconf::models::Mode::kKillSwitchEnabled:

0 commit comments

Comments
 (0)