Fix vercel deployment fetching (#758)
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
CreateVercelProjectParams,
|
||||
IsVercelProjectAvailableParams,
|
||||
SaveVercelAccessTokenParams,
|
||||
VercelDeployment,
|
||||
VercelProject,
|
||||
} from "../ipc_types";
|
||||
import { ConnectToExistingVercelProjectParams } from "../ipc_types";
|
||||
@@ -400,16 +401,7 @@ async function handleConnectToExistingProject(
|
||||
async function handleGetVercelDeployments(
|
||||
event: IpcMainInvokeEvent,
|
||||
{ appId }: GetVercelDeploymentsParams,
|
||||
): Promise<
|
||||
{
|
||||
uid: string;
|
||||
url: string;
|
||||
state: string;
|
||||
createdAt: number;
|
||||
target: string;
|
||||
readyState: string;
|
||||
}[]
|
||||
> {
|
||||
): Promise<VercelDeployment[]> {
|
||||
try {
|
||||
const settings = readSettings();
|
||||
const accessToken = settings.vercelAccessToken?.value;
|
||||
|
||||
@@ -272,15 +272,6 @@ export interface GetAppEnvVarsParams {
|
||||
appId: number;
|
||||
}
|
||||
|
||||
export interface VercelDeployment {
|
||||
uid: string;
|
||||
url: string;
|
||||
state: string;
|
||||
createdAt: number;
|
||||
target: string;
|
||||
readyState: string;
|
||||
}
|
||||
|
||||
export interface ConnectToExistingVercelProjectParams {
|
||||
projectId: string;
|
||||
appId: number;
|
||||
@@ -300,6 +291,15 @@ export interface GetVercelDeploymentsParams {
|
||||
appId: number;
|
||||
}
|
||||
|
||||
export interface VercelDeployment {
|
||||
uid: string;
|
||||
url: string;
|
||||
state: string;
|
||||
createdAt: number;
|
||||
target: string;
|
||||
readyState: string;
|
||||
}
|
||||
|
||||
export interface DisconnectVercelProjectParams {
|
||||
appId: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user