Skip to content

Commit

Permalink
Remove on conflict for createGroup query
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Apr 13, 2024
1 parent 46247ff commit 5a36594
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ LIMIT :limit OFFSET :offset;

createGroup:
INSERT INTO feedGroup(id, name, feedIds, createdAt, updatedAt)
VALUES (:id, :name, :feedIds, :createdAt, :updatedAt)
ON CONFLICT(name) DO NOTHING;
VALUES (:id, :name, :feedIds, :createdAt, :updatedAt);

updateGroupName:
UPDATE feedGroup SET name = :name WHERE id = :id;
Expand Down

0 comments on commit 5a36594

Please sign in to comment.