Skip to content

Commit c74a6a1

Browse files
committed
Tf config - cloud functions
1 parent 928bcf3 commit c74a6a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1674
-835
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
*.js
21
!jest.config.js
32
*.d.ts
43
node_modules/
@@ -9,4 +8,5 @@ cdk.out
98
package-lock.json
109

1110
.terraform/
12-
.terraform*
11+
.terraform*
12+
build/*

bin/cdk.ts

-35
This file was deleted.

cdk.context.json

-5
This file was deleted.

cdk.json

-33
This file was deleted.

jest.config.js

-8
This file was deleted.

lambda/fetchPartner.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { APIGatewayProxyEventV2, APIGatewayProxyResultV2 } from "aws-lambda";
21
import { Op, Vendor, sequelize } from "../models";
32
import { response } from "../utils/helper";
43

5-
export const handler = async (event: APIGatewayProxyEventV2, context: any) => {
4+
export const handler = async (event: any, context: any) => {
65
let body: any = event.body;
76
let { rating_avg, distance, is_veg, lat, lng, limit } = JSON.parse(body);
87

lambda/fetchPartnerDetail.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { APIGatewayProxyEventV2 } from "aws-lambda";
21
import { Vendor, Review, User } from "../models";
32
import { response } from "../utils/helper";
43
import { Sequelize } from "sequelize";

lambda/fetchUser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { User } from "../models";
1+
import { User } from "../models/index";
22
import { response } from "../utils/helper";
33

44
export const handler = async (event: any, context: any) => {

lib/api-stack.ts

-98
This file was deleted.

lib/auth-stack.ts

-76
This file was deleted.

lib/db-stack.ts

-55
This file was deleted.

lib/host-stack.ts

-42
This file was deleted.

0 commit comments

Comments
 (0)