Fork of github.com/did-method-plc/did-method-plc

fix mock db

dholms 750845b4 4da6c6d5

Changed files
+2 -7
packages
server
src
db
+2 -7
packages/server/src/db/mock.ts
···
-
import { cidForCbor, check } from '@atproto/common'
+
import { cidForCbor } from '@atproto/common'
import * as plc from '@did-plc/lib'
import { ServerError } from '../error'
import { PlcDatabase } from './types'
···
async opsForDid(did: string): Promise<plc.CompatibleOpOrTombstone[]> {
const ops = await this.indexedOpsForDid(did)
-
return ops.map((op) => {
-
if (check.is(op.operation, plc.def.createOpV1)) {
-
return plc.normalizeOp(op.operation)
-
}
-
return op.operation
-
})
+
return ops.map((op) => op.operation)
}
async indexedOpsForDid(