Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Amplify } from 'aws-amplify'
import { generateClient } from 'aws-amplify/data'
import { getAmplifyDataClientConfig } from '@aws-amplify/backend/function/runtime'
import { env } from '$amplify/env/hookPlan'
import { type Schema } from '../../../data/resource'
import { type Schema } from '../../data/resource'

// Configurar Amplify para acceso a datos
const { resourceConfig, libraryOptions } = await getAmplifyDataClientConfig(env)
Expand Down
2 changes: 1 addition & 1 deletion amplify/functions/cancelPlan/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineFunction, secret } from '@aws-amplify/backend'

export const cancelPlan = defineFunction({
name: 'cancelPlan',
entry: 'src/handler.ts',
entry: 'handler.ts',
environment: {
MERCADOPAGO_ACCESS_TOKEN: secret('MERCADOPAGO_ACCESS_TOKEN'),
},
Expand Down
115 changes: 0 additions & 115 deletions amplify/functions/cancelPlan/src/package-lock.json

This file was deleted.

15 changes: 0 additions & 15 deletions amplify/functions/cancelPlan/src/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion amplify/functions/planManagement/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineFunction, secret } from '@aws-amplify/backend'

export const planManagement = defineFunction({
name: 'planManagement',
entry: 'src/handler.ts',
entry: 'handler.ts',
environment: {
MERCADOPAGO_ACCESS_TOKEN: secret('MERCADOPAGO_ACCESS_TOKEN'),
},
Expand Down
115 changes: 0 additions & 115 deletions amplify/functions/planManagement/src/package-lock.json

This file was deleted.

15 changes: 0 additions & 15 deletions amplify/functions/planManagement/src/package.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Amplify } from 'aws-amplify'
import { generateClient } from 'aws-amplify/data'
import { getAmplifyDataClientConfig } from '@aws-amplify/backend/function/runtime'
import { env } from '$amplify/env/hookPlan'
import { type Schema } from '../../../data/resource'
import { type Schema } from '../../data/resource'

const { resourceConfig, libraryOptions } = await getAmplifyDataClientConfig(env)
Amplify.configure(resourceConfig, libraryOptions)
Expand Down
2 changes: 1 addition & 1 deletion amplify/functions/webHookPlan/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineFunction, secret } from '@aws-amplify/backend'

export const webHookPlan = defineFunction({
name: 'hookPlan',
entry: 'src/handler.ts',
entry: 'handler.ts',
resourceGroupName: 'auth',
environment: {
MERCADOPAGO_ACCESS_TOKEN: secret('MERCADOPAGO_ACCESS_TOKEN'),
Expand Down
Loading