diff --git a/index.mjs b/index.mjs index 848958a..f8262b3 100644 --- a/index.mjs +++ b/index.mjs @@ -3,7 +3,7 @@ export const handler = async (event) => { if (event.subject == "You have deliveries" || event.subject == "You have a delivery"){ // Trigger home notification const command = `ssh ${process.env.INTERNAL_HOST} "/usr/bin/tmux neww -d \"/usr/bin/mplayer '${process.env.INTERNAL_FILE}'\""`; - const { Client } = require('ssh2'); + import { Client } from 'ssh2'; const connection = new Client(); connection.on('ready', () => { connection.exec(command, (error, stream) => {