"use strict";
function buildCredentialPayloadForPrisma({
  credentialId,
  delegationCredentialId
}) {
  if (credentialId && credentialId < 0) {
    return {
      credentialId: null,
      delegationCredentialId
    };
  }
  return {
    credentialId,
    delegationCredentialId
  };
}
exports.buildCredentialPayloadForPrisma = buildCredentialPayloadForPrisma;
