From fa9ffc5361016571af0189203003f4be630f2ca2 Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Sat, 31 Oct 2020 00:55:17 -0400 Subject: internal/postgres: make UpsertSearchDocument a method We will need something (a column name) from the postgres.DB in the next CL. Change-Id: I9497aa1641107e92965e715791014680346567f1 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/267237 Trust: Jonathan Amsterdam Run-TryBot: Jonathan Amsterdam TryBot-Result: kokoro Reviewed-by: Jamal Carvalho Reviewed-by: Julie Qiu --- internal/postgres/insert_module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/postgres/insert_module.go') diff --git a/internal/postgres/insert_module.go b/internal/postgres/insert_module.go index 6eefd41b..fcb38933 100644 --- a/internal/postgres/insert_module.go +++ b/internal/postgres/insert_module.go @@ -149,7 +149,7 @@ func (db *DB) saveModule(ctx context.Context, m *internal.Module) (err error) { return err } // Insert the module's packages into search_documents. - return upsertSearchDocuments(ctx, tx, m) + return db.upsertSearchDocuments(ctx, tx, m) }) } -- cgit v1.3