diff --git a/src/lib/services/agent-service.js b/src/lib/services/agent-service.js index a4d9cbac..229bdacb 100644 --- a/src/lib/services/agent-service.js +++ b/src/lib/services/agent-service.js @@ -44,6 +44,9 @@ export async function saveAgent(agent) { await axios.put(url, agent); } +/** + * Refresh agent data + */ export async function refreshAgents() { const url = endpoints.agentRefreshUrl; await axios.post(url); diff --git a/src/routes/page/mongodb/+page.svelte b/src/routes/page/mongodb/+page.svelte index 1910a72e..5c502c8f 100644 --- a/src/routes/page/mongodb/+page.svelte +++ b/src/routes/page/mongodb/+page.svelte @@ -1,14 +1,13 @@ - {#if isLoading} @@ -42,11 +40,17 @@ {#if isComplete} -
Update comppleted!
+
Update completed!
+
+{/if} + +{#if isError} + +
Error!
{/if}

Migrate agents from file repository to MongoDB

- \ No newline at end of file