about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-06-07 23:28:12 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-06-07 23:28:12 +0200
commit9dd6eafa88f278372f08a53f009a59a23417ea54 (patch)
treeaed21cb18e2b0d1e3c57225e1ba6360d4e5939ea
parentMisc: Check for api key in request script (diff)
downloadfs-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.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