π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: PR requested
mertmitc56ab395d303
diff --git a/packages/nocodb/src/meta/migrations/v0/nc_017_add_canonical_email_to_users.ts b/packages/nocodb/src/meta/migrations/v0/nc_017_add_canonical_email_to_users.tsindex fc125fed95..2ff19ebb0f 100644--- a/packages/nocodb/src/meta/migrations/v0/nc_017_add_canonical_email_to_users.ts+++ b/packages/nocodb/src/meta/migrations/v0/nc_017_add_canonical_email_to_users.ts@@ -16,6 +16,7 @@ const up = async (knex: Knex) => {const users = await knex(MetaTable.USERS).select('id', 'email').whereNull('canonical_email')+ .whereNotNull('email').limit(BATCH_SIZE);if (users.length === 0) break;@@ -23,7 +24,6 @@ const up = async (knex: Knex) => {// Group by canonical value to batch updates where possibleconst updatesByCanonical = new Map<string, string[]>();for (const user of users) {- if (!user.email) continue;const canonical = normalizeEmail(user.email);if (!updatesByCanonical.has(canonical)) {updatesByCanonical.set(canonical, []);diff --git a/packages/nocodb/src/models/User.ts b/packages/nocodb/src/models/User.tsindex 612a2e8934..f1b12372a0 100644--- a/packages/nocodb/src/models/User.ts+++ b/packages/nocodb/src/models/User.ts@@ -207,7 +207,9 @@ export default class User implements UserType {_email: string,ncMeta = Noco.ncMeta,) {- const canonical = _email ? normalizeEmail(_email) : _email;+ if (!_email || _email === '') return null;++ const canonical = normalizeEmail(_email);let user =canonical &&(await NocoCache.get(