Skip to content

Commit 0b7156e

Browse files
committed
fixed unrefactored variable name
1 parent ef5c6e9 commit 0b7156e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

feature/dynamodb/enhancedclient/extension.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ type UpdateExpressionBuilder[T any] interface {
114114
}
115115

116116
// AutogenerateExtension provides automatic population of fields marked as
117-
// "autogenerated" in the schema. It supports two main features:
117+
// "autogenerated" in the schemext. It supports two main features:
118118
// - Key generation: Assigns a UUID to fields tagged with `autogenerated:key`.
119119
// - Timestamp generation: Assigns the current time to fields tagged with `autogenerated:timestamp`.
120120
//
@@ -159,11 +159,11 @@ func (ext *AutogenerateExtension[T]) BeforeWrite(ctx context.Context, item *T) e
159159

160160
switch opts[0] {
161161
case "key":
162-
if err := a.processKey(item, f, opts[1:]); err != nil {
162+
if err := ext.processKey(item, f, opts[1:]); err != nil {
163163
return err
164164
}
165165
case "timestamp":
166-
if err := a.processTimestamp(item, f, opts[1:]); err != nil {
166+
if err := ext.processTimestamp(item, f, opts[1:]); err != nil {
167167
return err
168168
}
169169
default:
@@ -195,11 +195,11 @@ func (ext *AutogenerateExtension[T]) BuildUpdate(ctx context.Context, item *T, u
195195

196196
switch opts[0] {
197197
case "key":
198-
if err := a.buildKeyUpdate(item, f, ub); err != nil {
198+
if err := ext.buildKeyUpdate(item, f, ub); err != nil {
199199
return err
200200
}
201201
case "timestamp":
202-
if err := a.buildTimestampUpdate(item, f, ub); err != nil {
202+
if err := ext.buildTimestampUpdate(item, f, ub); err != nil {
203203
return err
204204
}
205205
default:
@@ -565,7 +565,7 @@ func (ext *VersionExtension[T]) BuildUpdate(ctx context.Context, item *T, ub **e
565565
}
566566

567567
// AtomicCounterExtension provides automatic atomic increment logic for fields
568-
// marked as "atomiccounter" in the schema. When used as an UpdateExpressionBuilder,
568+
// marked as "atomiccounter" in the schemext. When used as an UpdateExpressionBuilder,
569569
// it generates DynamoDB update expressions that increment the field value atomically
570570
// on each update.
571571
//

0 commit comments

Comments
 (0)