Skip to content

Commit

Permalink
update active record
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Apr 8, 2023
1 parent 4ccda8b commit d5ef172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/sqlc/queries/chat_message.sql
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ WHERE uuid = $1 ;
-- name: DeleteChatMessagesBySesionUUID :exec
UPDATE chat_message
SET is_deleted = true, updated_at = now()
WHERE chat_session_uuid = $1;
WHERE is_deleted = false and chat_session_uuid = $1;


-- name: GetChatMessagesCount :one
Expand Down
2 changes: 1 addition & 1 deletion api/sqlc_queries/chat_message.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d5ef172

Please sign in to comment.