Skip to content
Permalink
Browse files

Add ga for lambda functions

  • Loading branch information...
marcomontalbano committed Sep 18, 2019
1 parent bb6aadd commit ed2168188de92cc6b1ca19609565682d25de3517
Showing with 87 additions and 82 deletions.
  1. +1 −1 bin/build-db
  2. +51 −80 package-lock.json
  3. +2 −1 package.json
  4. +22 −0 src/lambda/classes/google-ua.js
  5. +4 −0 src/lambda/image-json.js
  6. +4 −0 src/lambda/image.js
  7. +3 −0 src/lambda/netlify.js
@@ -8,7 +8,7 @@ const netlify = require('../src/lambda/netlify');
const dbPath = `${__dirname}/../src/db.json`;

fs.writeFileSync(dbPath, '{}');
netlify.handler({}, {}, (error, content) => {
netlify.handler({ path: '/netlify' }, {}, (error, content) => {
const netlify = JSON.parse(content.body);
fs.writeFileSync(dbPath, JSON.stringify({ netlify }, undefined, 2));
});

0 comments on commit ed21681

Please sign in to comment.
You can’t perform that action at this time.