From 9dd6eafa88f278372f08a53f009a59a23417ea54 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 7 Jun 2024 23:28:12 +0200 Subject: payload-processor: Update file table schema name --- src/payload-processor/processor/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1