function buildCredentialPayloadForPrisma({
  credentialId,
  delegationCredentialId
}) {
  if (credentialId && credentialId < 0) {
    return {
      credentialId: null,
      delegationCredentialId
    };
  }
  return {
    credentialId,
    delegationCredentialId
  };
}
export {
  buildCredentialPayloadForPrisma as b
};
