@faable/faable 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -149,6 +149,8 @@ const users_import = {
|
|
|
149
149
|
email: r.email,
|
|
150
150
|
status: r.status,
|
|
151
151
|
user_id: r.user_id,
|
|
152
|
+
skipped_identities: r
|
|
153
|
+
.skipped_identities,
|
|
152
154
|
error: r.error
|
|
153
155
|
});
|
|
154
156
|
}
|
|
@@ -169,6 +171,11 @@ const users_import = {
|
|
|
169
171
|
print_json({ dry_run, summary, results });
|
|
170
172
|
}
|
|
171
173
|
else {
|
|
174
|
+
const without = results.filter(r => r.skipped_identities?.length);
|
|
175
|
+
if (without.length) {
|
|
176
|
+
const names = [...new Set(without.flatMap(r => r.skipped_identities))];
|
|
177
|
+
log.warn(`⚠️ ${without.length} user(s) imported without their ${names.join(', ')} identity: this tenant has no connection by that name. Create it and re-run with --update-existing, or map it with --map-connection.`);
|
|
178
|
+
}
|
|
172
179
|
for (const r of results.filter(r => r.status === 'error')) {
|
|
173
180
|
log.error(`❌ record ${r.record}${r.email ? ` (${r.email})` : ''}: ${r.error?.code} — ${r.error?.message}`);
|
|
174
181
|
}
|