Skip to content

Commit dcbb1a7

Browse files
committed
comment actor fixes
Signed-off-by: Dhruv Jain <[email protected]>
1 parent ea8d57b commit dcbb1a7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

api/handler/notifications.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ func (cfg *Handler) ReadNotifications(w http.ResponseWriter, r *http.Request) {
202202
err = cfg.DB.ReadNotificationAll(r.Context(), userid)
203203

204204
if err != nil {
205+
cfg.logger.Info("Error reading notification", zap.Error(err))
205206
respondWithError(w, http.StatusInternalServerError, err.Error())
206207
}
207208

sql/schema/014_notifications.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- +goose Up
2+
ALTER TABLE notifications DROP CONSTRAINT notifications_prose_id_key;
3+
4+
-- +goose Down
5+
ALTER TABLE notifications ADD CONSTRAINT notifications_prose_id_key UNIQUE (prose_id);

0 commit comments

Comments
 (0)