79262285

Date: 2024-12-08 10:57:37
Score: 1
Natty:
Report link

The callback of ipcMain.handle has two parameters.

You're trying to use the event object as the arguments.

If you don't need to access the event object, use this instead:

ipcMain.handle('run-start', async (_, database) => {
  // YOUR CODE
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dinoscape Dinoscape