chore: cleanup outdated api (#6604)

This commit is contained in:
darkskygit
2024-04-18 14:42:45 +00:00
parent a537f8eb0b
commit b3b9e9a056
9 changed files with 21 additions and 104 deletions

View File

@@ -79,26 +79,6 @@ export async function getWorkspace(
return res.body.data.workspace;
}
export async function getPublicWorkspace(
app: INestApplication,
workspaceId: string
): Promise<WorkspaceType> {
const res = await request(app.getHttpServer())
.post(gql)
.set({ 'x-request-id': 'test', 'x-operation-name': 'test' })
.send({
query: `
query {
publicWorkspace(id: "${workspaceId}") {
id
}
}
`,
})
.expect(200);
return res.body.data.publicWorkspace;
}
export async function updateWorkspace(
app: INestApplication,
token: string,