Update pkg/storage/unified/sql/backend.go

This commit is contained in:
Georges Chaudy 2024-07-09 19:45:44 +02:00 committed by GitHub
parent 2207ef10de
commit 1fc1dd0914
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ func (b *backend) create(ctx context.Context, event resource.WriteEvent) (int64,
err := b.sqlDB.WithTx(ctx, ReadCommitted, func(ctx context.Context, tx db.Tx) error {
// TODO: Set the Labels
// 1. Update into entity
// 1. Insert into resource
if _, err := exec(ctx, tx, sqlResourceInsert, sqlResourceRequest{
SQLTemplate: sqltemplate.New(b.sqlDialect),
WriteEvent: event,