π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: move to ee
DarkPhoenix2704d1eaf6ffcd56
diff --git a/packages/nc-gui/utils/eeUtils.ts b/packages/nc-gui/utils/eeUtils.tsdeleted file mode 100644index 3087631d1f..0000000000--- a/packages/nc-gui/utils/eeUtils.ts+++ /dev/null@@ -1 +0,0 @@-export const isEeUI: boolean = false\ No newline at end of filediff --git a/packages/nocodb/src/controllers/internal/modules/SendRecordEmail.operations.ts b/packages/nocodb/src/controllers/internal/modules/SendRecordEmail.operations.tsdeleted file mode 100644index 7b67113abd..0000000000--- a/packages/nocodb/src/controllers/internal/modules/SendRecordEmail.operations.ts+++ /dev/null@@ -1,3 +0,0 @@-// This feature has been moved to EE-// Placeholder to maintain compatibility-export class SendRecordEmailOperations {}\ No newline at end of filediff --git a/packages/nocodb/src/controllers/internal/operationScopes.ts b/packages/nocodb/src/controllers/internal/operationScopes.tsindex 46cc405045..17fe62803c 100644--- a/packages/nocodb/src/controllers/internal/operationScopes.ts+++ b/packages/nocodb/src/controllers/internal/operationScopes.ts@@ -143,7 +143,4 @@ export const OPERATION_SCOPES = {managedAppDeployments: 'base',managedAppVersionDeployments: 'base',managedAppDeploymentLogs: 'base',-- // Send Record Email- sendRecordEmail: 'base',} as const;diff --git a/packages/nocodb/src/services/mail/mail.service.ts b/packages/nocodb/src/services/mail/mail.service.tsindex b2749007bf..3c8cc94e35 100644--- a/packages/nocodb/src/services/mail/mail.service.ts+++ b/packages/nocodb/src/services/mail/mail.service.ts@@ -275,62 +275,22 @@ export class MailService {});break;}- case MailEvent.FORM_SUBMISSION:- {- const { formView, data, model, emails, base } = payload;+ case MailEvent.FORM_SUBMISSION: {+ const { formView, data, model, emails, base } = payload;- await mailerAdapter.mailSend({- to: emails.join(','),- subject: `NocoDB Forms: Someone has responded to ${formView.title}`,- html: await this.renderMail('FormSubmission', {- formTitle: formView.title,- tableTitle: model.title,- submissionData: data,- baseTitle: base.title,- }),- });- }- break;- case MailEvent.SEND_RECORD:- {- const {- senderName,- senderEmail,- emails,- model,- base,- subject,- message,- recordData,- rowId,- req,- } = payload;-- const recordUrl = this.buildUrl(req, {- workspaceId: base.fk_workspace_id,- baseId: base.id,- tableId: model.id,- rowId,- });-- const emailSubject =- subject || `${senderName} shared a record from "${model.title}"`;+ await mailerAdapter.mailSend({+ to: emails.join(','),+ subject: `NocoDB Forms: Someone has responded to ${formView.title}`,+ html: await this.renderMail('FormSubmission', {+ formTitle: formView.title,+ tableTitle: model.title,+ submissionData: data,+ baseTitle: base.title,+ }),+ });- await mailerAdapter.mailSend({- to: emails.join(','),- subject: emailSubject,- html: await this.renderMail('SendRecord', {- senderName,- senderEmail,- tableTitle: model.title,- baseTitle: base.title,- message,- recordData,- recordUrl,- }),- });- }break;+ }}return true;} catch (e) {diff --git a/packages/nocodb/src/services/mail/templates/send-record.tsx b/packages/nocodb/src/services/mail/templates/send-record.tsxdeleted file mode 100644index b05c0ebf67..0000000000--- a/packages/nocodb/src/services/mail/templates/send-record.tsx+++ /dev/null@@ -1,5 +0,0 @@-// This template has been moved to EE-// Placeholder to maintain compatibility-export default function SendRecord() {- return null;-}\ No newline at end of file