summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-14 16:10:40 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-14 16:10:40 +0100
commitad5d54f48534ac0ad5bfd7f048bd7782e674a89b (patch)
tree4443e41c1aec412d82642b194aa3d837c9eb5cfd /src/backend/taler-merchant-httpd_private-post-products-ID-lock.c
parent49e2e44b09dd845d0922c0acef5ff487b52bf26d (diff)
downloadmerchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.tar.gz
merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.tar.bz2
merchant-ad5d54f48534ac0ad5bfd7f048bd7782e674a89b.zip
migration to protocol v11
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.c6
1 files changed, 3 insertions, 3 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 9983b520..184f1d28 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
@@ -43,8 +43,8 @@ TMH_private_post_products_ID_lock (const struct TMH_RequestHandler *rh,
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("lock_uuid",
&uuids),
- TALER_JSON_spec_relative_time ("duration",
- &duration),
+ GNUNET_JSON_spec_relative_time ("duration",
+ &duration),
GNUNET_JSON_spec_uint32 ("quantity",
&quantity),
GNUNET_JSON_spec_end ()
@@ -71,7 +71,7 @@ TMH_private_post_products_ID_lock (const struct TMH_RequestHandler *rh,
product_id,
&uuid,
quantity,
- GNUNET_TIME_relative_to_absolute (duration));
+ GNUNET_TIME_relative_to_timestamp (duration));
switch (qs)
{
case GNUNET_DB_STATUS_HARD_ERROR: