Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: 🐛 websoc configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Feb 6, 2024
1 parent 7f1cc2e commit 7a0c270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/routes/v1/rest/websoc/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { constructs, esbuildOptions } from "../../../../../bronya.config";
export const overrides: ApiPropsOverride = {
constructs: {
...constructs,
functionProps: (scope, id) => ({
...constructs.functionProps?.(scope, id),
functionProps: (scope, id, route) => ({
...constructs.functionProps?.(scope, id, route),
role: new Role(scope, `${id}-v1-rest-websoc-role`, {
assumedBy: new ServicePrincipal("lambda.amazonaws.com"),
managedPolicies: [
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/routes/v1/rest/websoc/{id}/+config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { constructs, esbuildOptions } from "../../../../../../bronya.config";
export const overrides: ApiPropsOverride = {
constructs: {
...constructs,
functionProps: (scope, id) => ({
...constructs.functionProps?.(scope, id),
functionProps: (scope, id, route) => ({
...constructs.functionProps?.(scope, id, route),
role: new Role(scope, `${id}-v1-rest-websoc-id-role`, {
assumedBy: new ServicePrincipal("lambda.amazonaws.com"),
managedPolicies: [
Expand Down

0 comments on commit 7a0c270

Please sign in to comment.