an app.bsky.* indexer

bring back HandleUpsert

Changed files
+2 -4
cmd
monarch
+2 -4
cmd/monarch/handlers.go
··· 163 163 } 164 164 165 165 func (hs *HandlerService) HandleCreate(ctx context.Context, repo string, rev string, path string, rec *[]byte, cid *cid.Cid) error { 166 - // return hs.HandleUpsert(ctx, repo, rev, path, rec, cid, ActionCreate) 167 - return nil 166 + return hs.HandleUpsert(ctx, repo, rev, path, rec, cid, ActionCreate) 168 167 } 169 168 170 169 func (hs *HandlerService) HandleUpdate(ctx context.Context, repo string, rev string, path string, rec *[]byte, cid *cid.Cid) error { 171 - // return hs.HandleUpsert(ctx, repo, rev, path, rec, cid, ActionUpdate) 172 - return nil 170 + return hs.HandleUpsert(ctx, repo, rev, path, rec, cid, ActionUpdate) 173 171 } 174 172 175 173 func (hs *HandlerService) HandleDelete(ctx context.Context, repo string, rev string, path string) error {