summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 22:00:31 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 22:00:31 +0200
commitd37e16a76c32e83407f5ea71e572cc5469a58924 (patch)
tree0bb4849ae69ccbc94ae7424014ac9abe0d8d16d5 /src/backend/taler-merchant-httpd_private-post-products-ID-lock.c
parentf82923526d6f7f688677b15f416a3b41f9feff2b (diff)
downloadmerchant-d37e16a76c32e83407f5ea71e572cc5469a58924.tar.gz
merchant-d37e16a76c32e83407f5ea71e572cc5469a58924.tar.bz2
merchant-d37e16a76c32e83407f5ea71e572cc5469a58924.zip
fix #6408 also in merchant: in principle only allow rounded times over JSON
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-products-ID-lock.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-products-ID-lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c b/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c
index ddd891a6..aac8b8c9 100644
--- a/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c
+++ b/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c
@@ -51,8 +51,8 @@ TMH_private_post_products_ID_lock (const struct TMH_RequestHandler *rh,
&uuid),
GNUNET_JSON_spec_uint32 ("quantity",
&quantity),
- GNUNET_JSON_spec_relative_time ("duration",
- &duration),
+ TALER_JSON_spec_relative_time ("duration",
+ &duration),
GNUNET_JSON_spec_end ()
};