mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 00:02:19 +00:00
fix compile build
This commit is contained in:
@@ -6503,7 +6503,6 @@ paths:
|
||||
type: boolean
|
||||
required:
|
||||
- owner
|
||||
- write
|
||||
responses:
|
||||
"200":
|
||||
description: owner removed from folder
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
import Head from '$lib/components/table/Head.svelte'
|
||||
import Toggle from '$lib/components/Toggle.svelte'
|
||||
import Tooltip from '$lib/components/Tooltip.svelte'
|
||||
import type { CancelablePromise, User } from '$lib/gen'
|
||||
import type { CancelablePromise, User, UserUsage } from '$lib/gen'
|
||||
import { UserService, WorkspaceService, type WorkspaceInvite } from '$lib/gen'
|
||||
import { userStore, workspaceStore } from '$lib/stores'
|
||||
import { sendUserToast } from '$lib/toast'
|
||||
@@ -40,10 +40,7 @@
|
||||
autoAdd = settings.auto_add
|
||||
}
|
||||
|
||||
let getUsagePromise: CancelablePromise<Array<{
|
||||
email: string;
|
||||
executions?: number;
|
||||
}>> | undefined = undefined
|
||||
let getUsagePromise: CancelablePromise<UserUsage[]> | undefined = undefined
|
||||
|
||||
let usage: Record<string, number> | undefined = undefined
|
||||
|
||||
@@ -52,7 +49,9 @@
|
||||
getUsagePromise = UserService.listUsersUsage({ workspace: $workspaceStore! })
|
||||
const res = await getUsagePromise
|
||||
usage = res.reduce((acc, { email, executions }) => {
|
||||
acc[email] = executions ?? 0
|
||||
if (email) {
|
||||
acc[email] = executions ?? 0
|
||||
}
|
||||
return acc
|
||||
}, {} as Record<string, number>)
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user