Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 8249e62

Browse files
Merge pull request #467 from deckgo/nm-update-starter
Update starter
2 parents 6acb876 + 0414b55 commit 8249e62

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

infra/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ rec
2222
function-unsplash =
2323
pkgs.runCommand "build-lambda" {}
2424
''
25-
cp ${pkgs.wai-lambda.wai-lambda-js-wrapper} main.js
25+
cp ${./main.js} main.js
2626
# Can't be called 'main' otherwise lambda tries to load it
2727
cp "${unsplashProxy}/bin/unsplash-proxy" main_hs
2828
mkdir $out

infra/main.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ exports.handler = function(event, context, callback) {
8989

9090
// Clean up the directory and finally reply
9191
console.log("cleaning up");
92-
fs.unlink(responseFile, (err) => {
93-
if (err) throw err;
94-
fs.rmdir(responseDir);
95-
});
92+
fs.unlinkSync(responseFile);
93+
fs.rmdirSync(responseDir);
9694
callback(null, response);
9795
}
9896
});

infra/nix/sources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"homepage": "https://deckdeckgo.com",
66
"owner": "deckgo",
77
"repo": "deckdeckgo-starter",
8-
"rev": "c65d6cd671d0a08227425a19d94767a9816efadf",
9-
"sha256": "1s5r59wisgk807dnp75la26xddp0p4snq5iyrl6d0wdbyshl4wb8",
8+
"rev": "c4d156e886ba1f7292fc4078d2828c40ba510371",
9+
"sha256": "0cssx2bwmh64d4jg4zqi5rlh63vxg92q3wlx5d1y1ff4ij2bbmmn",
1010
"type": "tarball",
11-
"url": "https://github.com/deckgo/deckdeckgo-starter/archive/c65d6cd671d0a08227425a19d94767a9816efadf.tar.gz",
11+
"url": "https://github.com/deckgo/deckdeckgo-starter/archive/c4d156e886ba1f7292fc4078d2828c40ba510371.tar.gz",
1212
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
1313
},
1414
"elasticmq": {

0 commit comments

Comments
 (0)