summaryrefslogtreecommitdiffstats
path: root/src/dbi.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-19 13:05:11 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-19 14:20:16 +0200
commita67c0d3d5756642373097261bc503f18f123e933 (patch)
treef923895e3dc49129904ae11f5e8ac1e2ad19790b /src/dbi.h
parent075725b1feef20a0cec4ef8affdf792aba2d6e23 (diff)
dbi: use repository_id field if front-end offers it
If repository_id json field is provided, use it to narrow down the image lookup. After this, search use this same repository ID to fetch the IP address. Old web console may not provide repository_id, infer it from the image name. Always set image id field for creation and update.
Diffstat (limited to 'src/dbi.h')
-rw-r--r--src/dbi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbi.h b/src/dbi.h
index f7aaea3..e16e5d1 100644
--- a/src/dbi.h
+++ b/src/dbi.h
@@ -144,7 +144,7 @@ int og_dbi_add_image(struct og_dbi *dbi, struct og_image *image);
int og_dbi_schema_update(void);
-int og_dbi_get_repository_ip(const struct og_dbi *dbi, const uint64_t image_id,
+int og_dbi_get_repository_ip(const struct og_dbi *dbi, const uint32_t repo_id,
char *repository_ip);
#endif