Skip to content

Commit

Permalink
fix: metadata field name
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Aug 23, 2024
1 parent cf6d37d commit 49fc149
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE TABLE EntityConfigurationMetadata (
id SERIAL PRIMARY KEY,
account_id INT NOT NULL,
key TEXT NOT NULL,
value TEXT NOT NULL,
metadata TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
deleted_at TIMESTAMP,
CONSTRAINT FK_ParentEntityConfigurationMetadata FOREIGN KEY (account_id) REFERENCES Account (id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ create:
INSERT INTO EntityConfigurationMetadata (
account_id,
key,
value
metadata
) VALUES (?, ?, ?) RETURNING *;

delete:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class EntityConfigurationStatementService {

metadata.forEach {
entityConfigurationStatement.metadata(
Pair(it.key, Json.parseToJsonElement(it.value_).jsonObject)
Pair(it.key, Json.parseToJsonElement(it.metadata).jsonObject)
)
}

Expand Down

0 comments on commit 49fc149

Please sign in to comment.