diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-07 23:28:12 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-07 23:28:12 +0200 |
commit | 9dd6eafa88f278372f08a53f009a59a23417ea54 (patch) | |
tree | aed21cb18e2b0d1e3c57225e1ba6360d4e5939ea | |
parent | Misc: Check for api key in request script (diff) | |
download | fs-tracer-backend-9dd6eafa88f278372f08a53f009a59a23417ea54.tar.gz fs-tracer-backend-9dd6eafa88f278372f08a53f009a59a23417ea54.tar.bz2 fs-tracer-backend-9dd6eafa88f278372f08a53f009a59a23417ea54.zip |
payload-processor: Update file table schema name
-rw-r--r-- | src/payload-processor/processor/db.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/payload-processor/processor/db.go b/src/payload-processor/processor/db.go index f8c4619..607f97d 100644 --- a/src/payload-processor/processor/db.go +++ b/src/payload-processor/processor/db.go @@ -25,7 +25,7 @@ func NewDB(db *sqlx.DB) DB { func (db DBImpl) InsertFiles(ctx context.Context, files []lib.File, user_id string) error { for _, file := range files { file.User_id = user_id - _, err := db.db.NamedExecContext(ctx, "INSERT INTO private.file (user_id, absolute_path, contents, timestamp) VALUES (:user_id, :absolute_path, :contents, :timestamp)", file) + _, err := db.db.NamedExecContext(ctx, "INSERT INTO public.file (user_id, absolute_path, contents, timestamp) VALUES (:user_id, :absolute_path, :contents, :timestamp)", file) return err } return nil |