Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infra/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ rec
function-unsplash =
pkgs.runCommand "build-lambda" {}
''
cp ${pkgs.wai-lambda.wai-lambda-js-wrapper} main.js
cp ${./main.js} main.js
# Can't be called 'main' otherwise lambda tries to load it
cp "${unsplashProxy}/bin/unsplash-proxy" main_hs
mkdir $out
Expand Down
6 changes: 2 additions & 4 deletions infra/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ exports.handler = function(event, context, callback) {

// Clean up the directory and finally reply
console.log("cleaning up");
fs.unlink(responseFile, (err) => {
if (err) throw err;
fs.rmdir(responseDir);
});
fs.unlinkSync(responseFile);
fs.rmdirSync(responseDir);
callback(null, response);
}
});
Expand Down
6 changes: 3 additions & 3 deletions infra/nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"homepage": "https://deckdeckgo.com",
"owner": "deckgo",
"repo": "deckdeckgo-starter",
"rev": "c65d6cd671d0a08227425a19d94767a9816efadf",
"sha256": "1s5r59wisgk807dnp75la26xddp0p4snq5iyrl6d0wdbyshl4wb8",
"rev": "c4d156e886ba1f7292fc4078d2828c40ba510371",
"sha256": "0cssx2bwmh64d4jg4zqi5rlh63vxg92q3wlx5d1y1ff4ij2bbmmn",
"type": "tarball",
"url": "https://github.com/deckgo/deckdeckgo-starter/archive/c65d6cd671d0a08227425a19d94767a9816efadf.tar.gz",
"url": "https://github.com/deckgo/deckdeckgo-starter/archive/c4d156e886ba1f7292fc4078d2828c40ba510371.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"elasticmq": {
Expand Down