update
This commit is contained in:
@@ -38,10 +38,10 @@ class Op:
|
||||
|
||||
for op, doc in ops.items():
|
||||
match op:
|
||||
case DynamoDBRecordEventName.INSERT:
|
||||
case (
|
||||
DynamoDBRecordEventName.INSERT | DynamoDBRecordEventName.MODIFY
|
||||
):
|
||||
index.add_documents(doc, serializer=JSONEncoder)
|
||||
case DynamoDBRecordEventName.MODIFY:
|
||||
index.update_documents(doc, serializer=JSONEncoder)
|
||||
case DynamoDBRecordEventName.REMOVE:
|
||||
index.delete_documents(doc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user