diff options
| author | Jonathan Amsterdam <jba@google.com> | 2020-10-31 00:55:17 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2020-11-03 18:24:52 +0000 |
| commit | fa9ffc5361016571af0189203003f4be630f2ca2 (patch) | |
| tree | a2576c3e2d22bf2e18ec4e1972fd18cf8c4a9fc5 /internal/postgres/insert_module.go | |
| parent | 8fa21ce22192746f42f770eb66cc638a056f1c5d (diff) | |
| download | go-x-pkgsite-fa9ffc5361016571af0189203003f4be630f2ca2.tar.xz | |
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 <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/postgres/insert_module.go')
| -rw-r--r-- | internal/postgres/insert_module.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) }) } |
