mirror of https://github.com/dapr/docs.git
Update statemanagement-quickstart.md
First time reading the Dapr docs, so I might be wrong, but this code sample didn't seem right to me. Signed-off-by: Hilton Giesenow <hilton@giesenow.com>
This commit is contained in:
parent
66c974278f
commit
3831dad93b
|
@ -180,12 +180,12 @@ The `order-processor` service writes, reads, and deletes an `orderId` key/value
|
|||
const client = new DaprClient()
|
||||
|
||||
// Save state into a state store
|
||||
await client.state.save(DAPR_STATE_STORE_NAME, state)
|
||||
await client.state.save(DAPR_STATE_STORE_NAME, order)
|
||||
console.log("Saving Order: ", order)
|
||||
|
||||
// Get state from a state store
|
||||
const savedOrder = await client.state.get(DAPR_STATE_STORE_NAME, order.orderId)
|
||||
console.log("Getting Order: ", savedOrd)
|
||||
console.log("Getting Order: ", savedOrder)
|
||||
|
||||
// Delete state from the state store
|
||||
await client.state.delete(DAPR_STATE_STORE_NAME, order.orderId)
|
||||
|
|
Loading…
Reference in New Issue