about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/payload-processor/processor/db.go2
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