Skip to content

Commit

Permalink
updated most of the deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianovide committed May 27, 2021
1 parent 4f95eb3 commit f58bdc7
Show file tree
Hide file tree
Showing 4 changed files with 1,699 additions and 34,222 deletions.
7 changes: 1 addition & 6 deletions functions/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

const _ = require("lodash");
const json2csv = require("json2csv");
// https://firebase.google.com/docs/functions/locations
Expand Down Expand Up @@ -36,9 +34,6 @@ const firestore = admin.firestore();
const auth = admin.auth();
const messaging = admin.messaging();

const settings = { timestampsInSnapshots: true };
firestore.settings(settings);

const pubsub = new PubSub();
const app = express();
app.use(cors);
Expand Down Expand Up @@ -292,7 +287,7 @@ app.get("/photos.csv", async (req, res) => {
res.setHeader("Content-Type", "text/csv");
res.setHeader(
"Content-Disposition",
'attachment; filename="' + "photos-" + Date.now() + '.csv"'
'attachment; filename="photos-' + Date.now() + '.csv"'
);
res.status(200).send(csv);
return true;
Expand Down
Loading

0 comments on commit f58bdc7

Please sign in to comment.