MCPcopy
hub / github.com/yaklang/yakit / asyncGetProjects

Function asyncGetProjects

app/main/handlers/project.js:52–62  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

50
51 // asyncGetProjects wrapper
52 const asyncGetProjects = (params) => {
53 return new Promise((resolve, reject) => {
54 getClient().GetProjects(params, (err, data) => {
55 if (err) {
56 reject(err)
57 return
58 }
59 resolve(data)
60 })
61 })
62 }
63 ipcMain.handle('GetProjects', async (e, params) => {
64 return await asyncGetProjects(params)
65 })

Callers 1

project.jsFile · 0.85

Calls 1

getClientFunction · 0.85

Tested by

no test coverage detected