architect / functions

AWS Lambda Node runtime helpers for Architect apps
https://arc.codes
163 stars 38 forks source link

v8@RC arc.tables()['table'].put() returns empty object #554

Closed tbeseda closed 8 months ago

tbeseda commented 8 months ago

Describe the issue

I'm testing arc/arc@RC v11 with arc/fns@RC v8.

arc.tables()['table'].put() returns an empty object where it used to return the item from Dynamo.

(in Sandbox, unsure about live)

Steps to reproduce

import arc from '@architect/functions'
const { things } = await arc.tables()

const update = await things.put({
  key: '123abc',
  data: {},
  created: new Date().toISOString(),
})

console.log(update) // {}
console.log(`Saved ${update}`) // undefined

Expected behavior

Previously my logs would have the updated item from the put operation

Desktop

Node v20, macOS