an app.bsky.* indexer

bring back HandleUpsert

Changed files
+2 -4
cmd
monarch
+2 -4
cmd/monarch/handlers.go
···
}
func (hs *HandlerService) HandleCreate(ctx context.Context, repo string, rev string, path string, rec *[]byte, cid *cid.Cid) error {
-
// return hs.HandleUpsert(ctx, repo, rev, path, rec, cid, ActionCreate)
-
return nil
+
return hs.HandleUpsert(ctx, repo, rev, path, rec, cid, ActionCreate)
}
func (hs *HandlerService) HandleUpdate(ctx context.Context, repo string, rev string, path string, rec *[]byte, cid *cid.Cid) error {
-
// return hs.HandleUpsert(ctx, repo, rev, path, rec, cid, ActionUpdate)
-
return nil
+
return hs.HandleUpsert(ctx, repo, rev, path, rec, cid, ActionUpdate)
}
func (hs *HandlerService) HandleDelete(ctx context.Context, repo string, rev string, path string) error {