fix(orm): fix broken Table.Delete method (#11112)

This commit is contained in:
Aaron Craelius
2022-02-03 15:59:16 -05:00
committed by GitHub
parent e0543a3be0
commit 888548ab53
3 changed files with 34 additions and 2 deletions
+2 -2
View File
@@ -153,9 +153,9 @@ func (t tableImpl) doSave(writer *batchIndexCommitmentWriter, message proto.Mess
return writer.Write()
}
func (t tableImpl) Delete(context context.Context, message proto.Message) error {
func (t tableImpl) Delete(ctx context.Context, message proto.Message) error {
pk := t.PrimaryKeyCodec.GetKeyValues(message.ProtoReflect())
return t.DeleteBy(context, pk)
return t.doDelete(ctx, pk)
}
func (t tableImpl) GetIndex(fields string) Index {