1package photocopy
2
3import (
4 "context"
5 "time"
6
7 "github.com/haileyok/photocopy/models"
8)
9
10func (p *Photocopy) handleDelete(ctx context.Context, did, collection, rkey string) error {
11 del := models.Delete{
12 Did: did,
13 Rkey: rkey,
14 CreatedAt: time.Now(),
15 }
16
17 if err := p.inserters.deletesInserter.Insert(ctx, del); err != nil {
18 return err
19 }
20
21 return nil
22}