this repo has no description

cid deletion fix (#2)

authored by Juliet and committed by GitHub df62dc92 3bd88c92

Changed files
+4 -1
server
+4 -1
server/repo.go
··· 209 209 ops := make([]*atproto.SyncSubscribeRepos_RepoOp, 0, len(diffops)) 210 210 211 211 for _, op := range diffops { 212 + var c cid.Cid 212 213 switch op.Op { 213 214 case "add", "mut": 214 215 kind := "create" ··· 216 217 kind = "update" 217 218 } 218 219 220 + c = op.NewCid 219 221 ll := lexutil.LexLink(op.NewCid) 220 222 ops = append(ops, &atproto.SyncSubscribeRepos_RepoOp{ 221 223 Action: kind, ··· 224 226 }) 225 227 226 228 case "del": 229 + c = op.OldCid 227 230 ll := lexutil.LexLink(op.OldCid) 228 231 ops = append(ops, &atproto.SyncSubscribeRepos_RepoOp{ 229 232 Action: "delete", ··· 233 236 }) 234 237 } 235 238 236 - blk, err := dbs.Get(context.TODO(), op.NewCid) 239 + blk, err := dbs.Get(context.TODO(), c) 237 240 if err != nil { 238 241 return nil, err 239 242 }