fix: multiple error
ci-api / test (push) Successful in 23m32s
ci-web / test (push) Successful in 13m52s

This commit is contained in:
Nuxgrid
2026-08-01 17:24:34 +02:00
parent a06205a608
commit 5d2a132c3c
9 changed files with 144 additions and 54 deletions
+3 -3
View File
@@ -104,7 +104,6 @@ export interface DemoState {
}
export interface DemoDetails {
username: string
namespace: string
state: DemoState
}
@@ -150,6 +149,7 @@ export const api = {
request<Lead>('PATCH', `/leads/${id}/status`, { status }),
listDemos: () => request<{ items: Demo[] }>('GET', '/demos'),
listMyDemos: () => request<{ items: Demo[] }>('GET', '/demos/mine'),
getDemo: (id: string) => request<Demo>('GET', `/demos/${id}`),
createDemo: (username: string, leadId?: string) =>
request<Demo>('POST', '/demos', {
@@ -167,8 +167,8 @@ export const api = {
sendMessage: (username: string, telegram: string, sujet: string, message: string) =>
request<{ success: string }>('POST', '/send/message', { username, telegram, sujet, message }),
getMessage: () => request<{ messages: Contact[] }>('GET', '/messages'),
getDemoDetails: (username: string) =>
request<DemoDetails>('POST', '/demos/details', { username }),
getDemoDetails: (namespace: string) =>
request<DemoDetails>('POST', '/demos/details', { namespace }),
updateUsername: (username: string) =>
request<UpdateUsername>('POST', '/profile/username', { username }),
updatePassword: (password: string) =>