Fixed ID saved in tenant
MODIFY
src/storage/mongodb/TenantStorage.ts
src/storage/mongodb/TenantStorage.ts
@@ -48,6 +48,9 @@ export default class TenantStorage {
} else {
tenantFilter._id = new ObjectId();
}
+ // Remove ID
+ delete tenantMDB.id;
+ // Add Last Changed/Created props
DatabaseUtils.addLastChangedCreatedProps(tenantMDB, tenantToSave);
// Modify
await global.database.getCollection<Tenant>(Constants.DEFAULT_TENANT, 'tenants').findOneAndUpdate(

Fixed ID saved in tenant