fix(cli): allow empty messages array in import response

This commit is contained in:
Igor Šćekić
2026-01-29 13:17:09 +01:00
parent 452a88ec8d
commit a7910b4d92
+1 -1
View File
@@ -63,7 +63,7 @@ export const ImportCommand = cmd({
const data = await response.json()
if (!data.info || !data.messages || !Array.isArray(data.messages) || data.messages.length === 0) {
if (!data.info || !data.messages || !Array.isArray(data.messages)) {
process.stdout.write(`Share not found: ${id}`)
process.stdout.write(EOL)
return