csblogs/feed-downloader

View on GitHub
src/app.js

Summary

Maintainability
A
0 mins
Test Coverage
import aggregate from './aggregator';

export default function handle(context) {
  context.log('CS Blogs Feed Aggregator started');
  aggregate()
    .then(() => {
      // context.done() called so Azure knows function completed successfully
      context.done();
    })
    .catch((error) => {
      // context.done(error) to report error to Azure Function
      context.done(error);
    });
}