Skip to content

Commit

Permalink
Merge pull request #248 from ww24/fix-reminder-store
Browse files Browse the repository at this point in the history
fix(infra/firestore): fix reminder add method
  • Loading branch information
ww24 authored Apr 21, 2022
2 parents 2c671f2 + 462d2d5 commit 06f9368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/firestore/reminder.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (r *Reminder) Add(ctx context.Context, item *model.ReminderItem) error {
entity.CreatedAt = time.Now().Unix()

reminder := r.reminder(item.ConversationID)
if _, err := reminder.NewDoc().Set(ctx, entity); err != nil {
if _, err := reminder.Doc(entity.ID).Set(ctx, entity); err != nil {
return xerrors.Errorf("failed to add reminder: %w", err)
}

Expand Down

0 comments on commit 06f9368

Please sign in to comment.