Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deleteItems(tableName: string,
keys: DDB.Key[],
cb: Function): void {
// build a list of delete functions
const funcs = async.reflectAll(keys.map(key => {
const params = {
Key: key,
TableName: tableName
};
return async.apply(this.deleteItem.bind(this), params);
}));
// now delete them, one at a time
async.series(funcs, (err, data) => cb());
}
attach () {
async.series([
(cb) => {
exec('OMXPLAYER_DBUS_ADDR="/tmp/omxplayerdbus.${USER}"', (error) => {
if (error) {
cb(error)
}
})
},
(cb) => {
exec('OMXPLAYER_DBUS_PID="/tmp/omxplayerdbus.${USER}.pid"', (error) => {
if (error) {
cb(error)
}
})
},
(cb) => {
exec('export DBUS_SESSION_BUS_ADDRESS=`cat $OMXPLAYER_DBUS_ADDR`', (error) => {