Skip to content

Commit

Permalink
Move unused labmda
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-bach committed Dec 29, 2024
1 parent d5a1a33 commit 1bad027
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { marshall } from '@aws-sdk/util-dynamodb';
const { v4: uuidv4 } = require('uuid');

import dynamoDbCommand from './helpers/dynamoDbCommand';
import { CreateAccountInput, AccountReadModel } from '../types/Account';
import { CreateAccountInput, AccountReadModel } from '../../lambda/types/Account';

async function createAccount(input: CreateAccountInput) {
console.debug(`πŸ•§ Create Account initialized`);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { QueryCommand, QueryCommandInput, DeleteItemCommand, DeleteItemCommandInput } from '@aws-sdk/client-dynamodb';

import dynamoDbCommand from './helpers/dynamoDbCommand';
import { DeleteAccountInput } from '../types/Account';
import { DeleteAccountInput } from '../../lambda/types/Account';

async function deleteAccount(input: DeleteAccountInput) {
console.debug(`πŸ•§ Delete Account initialized`);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { QueryCommand, QueryCommandInput } from '@aws-sdk/client-dynamodb';
import { marshall, unmarshall } from '@aws-sdk/util-dynamodb';

import { LastEvaluatedKey } from '../types/Account';
import { LastEvaluatedKey } from '../../lambda/types/Account';
import dynamoDbCommand from './helpers/dynamoDbCommand';

async function getAccounts(userId: string, aggregateId: string, lastEvaluatedKey: LastEvaluatedKey) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import createAccount from './createAccount';
import updateAccount from './updateAccount';
import deleteAccount from './deleteAccount';

import { AccountAppSyncEvent } from '../types/Account';
import { AccountAppSyncEvent } from '../../lambda/types/Account';

exports.handler = async (event: AccountAppSyncEvent) => {
console.debug(`πŸ•§ AppSync event: ${JSON.stringify(event)}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { UpdateItemCommand, UpdateItemCommandInput } from '@aws-sdk/client-dynam
import { marshall, unmarshall } from '@aws-sdk/util-dynamodb';

import dynamoDbCommand from './helpers/dynamoDbCommand';
import { UpdateAccountInput } from '../types/Account';
import { UpdateAccountInput } from '../../lambda/types/Account';

async function updateAccount(input: UpdateAccountInput) {
console.debug(`πŸ•§ Update Account initialized`);
Expand Down

0 comments on commit 1bad027

Please sign in to comment.