sst 2.8.19 → 2.8.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constructs/Job.js +2 -3
- package/package.json +1 -1
package/constructs/Job.js
CHANGED
|
@@ -244,20 +244,19 @@ export class Job extends Construct {
|
|
|
244
244
|
]);
|
|
245
245
|
}
|
|
246
246
|
createLocalInvoker() {
|
|
247
|
-
const { handler,
|
|
247
|
+
const { handler, nodejs } = this.props;
|
|
248
248
|
// Note: make the invoker function the same ID as the Job
|
|
249
249
|
// construct so users can identify the invoker function
|
|
250
250
|
// in the Console.
|
|
251
251
|
const fn = new Function(this, this.node.id, {
|
|
252
252
|
handler,
|
|
253
|
-
nodejs
|
|
253
|
+
nodejs,
|
|
254
254
|
runtime: "nodejs16.x",
|
|
255
255
|
timeout: 10,
|
|
256
256
|
memorySize: 1024,
|
|
257
257
|
environment: {
|
|
258
258
|
SST_DEBUG_TYPE: "job",
|
|
259
259
|
},
|
|
260
|
-
permissions,
|
|
261
260
|
});
|
|
262
261
|
fn._doNotAllowOthersToBind = true;
|
|
263
262
|
return fn;
|