remove spaces
This commit is contained in:
@@ -22,7 +22,6 @@ import type {
|
||||
CreateDomainParams,
|
||||
UpdateDomainParams,
|
||||
TestDomainConnectionParams,
|
||||
GetSpacesParams,
|
||||
GetAppsParams,
|
||||
GetAppDetailParams,
|
||||
GetFileContentParams,
|
||||
@@ -237,19 +236,6 @@ function registerTestDomainConnection(): void {
|
||||
|
||||
// ==================== Browse IPC Handlers ====================
|
||||
|
||||
/**
|
||||
* Get spaces
|
||||
*/
|
||||
function registerGetSpaces(): void {
|
||||
handleWithParams<
|
||||
GetSpacesParams,
|
||||
Awaited<ReturnType<SelfKintoneClient["getSpaces"]>>
|
||||
>("getSpaces", async (params) => {
|
||||
const client = await getClient(params.domainId);
|
||||
return client.getSpaces();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get apps
|
||||
*/
|
||||
@@ -259,10 +245,15 @@ function registerGetApps(): void {
|
||||
Awaited<ReturnType<SelfKintoneClient["getApps"]>>
|
||||
>("getApps", async (params) => {
|
||||
const client = await getClient(params.domainId);
|
||||
return client.getApps(params.spaceId);
|
||||
return client.getApps({
|
||||
limit: params.limit,
|
||||
offset: params.offset,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get app detail
|
||||
*/
|
||||
@@ -553,7 +544,6 @@ export function registerIpcHandlers(): void {
|
||||
registerTestDomainConnection();
|
||||
|
||||
// Browse
|
||||
registerGetSpaces();
|
||||
registerGetApps();
|
||||
registerGetAppDetail();
|
||||
registerGetFileContent();
|
||||
|
||||
Reference in New Issue
Block a user