Fix conflicts

This commit is contained in:
Nicola Benaglia 2025-05-24 14:16:31 +02:00
parent 5f0b5ec4ef
commit c9a6783683
2 changed files with 6 additions and 13 deletions

View File

@ -294,9 +294,6 @@ export const publishOnQDN = async ({
}) => { }) => {
if (data && service) { if (data && service) {
const registeredName = name || (await getNameInfo()); const registeredName = name || (await getNameInfo());
}) => {
if (data && service) {
const registeredName = await getNameInfo();
if (!registeredName) if (!registeredName)
throw new Error( throw new Error(
i18n.t('core:message.generic.name_publish', { i18n.t('core:message.generic.name_publish', {

View File

@ -83,29 +83,25 @@ async function getKeyPair() {
} }
export const publishData = async ({ export const publishData = async ({
category,
data, data,
description,
feeAmount, feeAmount,
filename, filename,
identifier, identifier,
isBase64, isBase64,
registeredName, registeredName,
file,
service, service,
identifier,
uploadType,
withFee,
title,
description,
category,
tag1, tag1,
tag2, tag2,
tag3, tag3,
tag4, tag4,
tag5, tag5,
title,
uploadType,
withFee,
}: any) => { }: any) => {
console.log('data', data); console.log('data', data);
feeAmount,
}: any) => {
const validateName = async (receiverName: string) => { const validateName = async (receiverName: string) => {
return await reusableGet(`/names/${receiverName}`); return await reusableGet(`/names/${receiverName}`);
}; };
@ -232,7 +228,7 @@ export const publishData = async ({
let transactionBytes = await uploadData(registeredName, data, fee); let transactionBytes = await uploadData(registeredName, data, fee);
console.log('transactionBytes length', transactionBytes?.length); console.log('transactionBytes length', transactionBytes?.length);
if (!transactionBytes || transactionBytes.error) { if (!transactionBytes || transactionBytes.error) {
throw new Error(transactionBytes?.message || 'Error when uploading'); throw new Error(transactionBytes?.message || 'Error when uploading');
} else if (transactionBytes.includes('Error 500 Internal Server Error')) { } else if (transactionBytes.includes('Error 500 Internal Server Error')) {