From 0b0c358459dabd902640b199393da1bb84660d26 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Mon, 1 Aug 2022 15:16:00 +0100 Subject: [PATCH] use correct appId when searching for users by app --- .../portal/overview/_components/OverviewTab.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/overview/_components/OverviewTab.svelte b/packages/builder/src/pages/builder/portal/overview/_components/OverviewTab.svelte index 3e8e15fb2c..19402c213e 100644 --- a/packages/builder/src/pages/builder/portal/overview/_components/OverviewTab.svelte +++ b/packages/builder/src/pages/builder/portal/overview/_components/OverviewTab.svelte @@ -5,7 +5,7 @@ import { store } from "builderStore" import clientPackage from "@budibase/client/package.json" import { processStringSync } from "@budibase/string-templates" - import { users, auth } from "stores/portal" + import { users, auth, apps } from "stores/portal" import { createEventDispatcher, onMount } from "svelte" export let app @@ -40,9 +40,11 @@ } onMount(async () => { - let resp = await users.getUserCountByApp({ appId: "app_" + app.appId }) + let resp = await users.getUserCountByApp({ + appId: apps.getProdAppID(app.devId), + }) userCount = resp.userCount - await users.search({ appId: "app_" + app.appId, limit: 4 }) + await users.search({ appId: apps.getProdAppID(app.devId), limit: 4 }) })