Skip to content

Commit

Permalink
s/script_name/service
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Dec 23, 2021
1 parent fb26ba2 commit 07de71e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/wrangler/src/api/form_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface WorkerMetadata {
| {
type: "service";
name: string;
script_name: string;
service: string;
environment: string;
}
)[];
Expand Down Expand Up @@ -94,11 +94,11 @@ export function toFormData(worker: CfWorkerInit): FormData {
metadataBindings.push({ name: key, type: "plain_text", text: value });
});

bindings.services?.forEach(({ name, script_name, environment }) => {
bindings.services?.forEach(({ name, service, environment }) => {
metadataBindings.push({
name,
type: "service",
script_name,
service,
environment,
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/api/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ interface CfDurableObject {
*/
interface CfService {
name: string;
script_name: string;
service: string;
environment: string;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type DurableObject = {

type Service = {
name: string;
script_name: string;
service: string;
environment: string;
};

Expand Down

0 comments on commit 07de71e

Please sign in to comment.