strapi-plugin-magic-mail 2.3.7 → 2.3.8
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.
- package/dist/server/index.js +6 -6
- package/dist/server/index.mjs +6 -6
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -5543,7 +5543,7 @@ function requireOauth() {
|
|
|
5543
5543
|
});
|
|
5544
5544
|
return oauth;
|
|
5545
5545
|
}
|
|
5546
|
-
const version = "2.3.
|
|
5546
|
+
const version = "2.3.7";
|
|
5547
5547
|
const require$$2 = {
|
|
5548
5548
|
version
|
|
5549
5549
|
};
|
|
@@ -5971,7 +5971,7 @@ function requireEmailDesigner() {
|
|
|
5971
5971
|
}
|
|
5972
5972
|
return strapi2.documents(EMAIL_TEMPLATE_UID).findOne({
|
|
5973
5973
|
documentId: String(idOrDocumentId),
|
|
5974
|
-
populate:
|
|
5974
|
+
populate: { versions: true }
|
|
5975
5975
|
});
|
|
5976
5976
|
},
|
|
5977
5977
|
/**
|
|
@@ -5984,7 +5984,7 @@ function requireEmailDesigner() {
|
|
|
5984
5984
|
const byRefId = await strapi2.documents(EMAIL_TEMPLATE_UID).findMany({
|
|
5985
5985
|
filters: { templateReferenceId: numericId },
|
|
5986
5986
|
limit: 1,
|
|
5987
|
-
populate:
|
|
5987
|
+
populate: { versions: true }
|
|
5988
5988
|
});
|
|
5989
5989
|
if (byRefId.length > 0) {
|
|
5990
5990
|
strapi2.log.info(`[magic-mail] [SUCCESS] Found template by templateReferenceId ${numericId}: documentId=${byRefId[0].documentId}, name="${byRefId[0].name}"`);
|
|
@@ -5992,7 +5992,7 @@ function requireEmailDesigner() {
|
|
|
5992
5992
|
}
|
|
5993
5993
|
strapi2.log.info(`[magic-mail] [FALLBACK] templateReferenceId not found, trying internal db id: ${numericId}`);
|
|
5994
5994
|
const byInternalId = await strapi2.entityService.findOne(EMAIL_TEMPLATE_UID, numericId, {
|
|
5995
|
-
populate:
|
|
5995
|
+
populate: { versions: true }
|
|
5996
5996
|
});
|
|
5997
5997
|
if (byInternalId) {
|
|
5998
5998
|
strapi2.log.info(`[magic-mail] [SUCCESS] Found template by internal id ${numericId}: documentId=${byInternalId.documentId}, name="${byInternalId.name}"`);
|
|
@@ -6230,7 +6230,7 @@ function requireEmailDesigner() {
|
|
|
6230
6230
|
const actualDocumentId = template.documentId;
|
|
6231
6231
|
const version2 = await strapi2.documents(EMAIL_TEMPLATE_VERSION_UID).findOne({
|
|
6232
6232
|
documentId: versionDocumentId,
|
|
6233
|
-
populate:
|
|
6233
|
+
populate: { template: true }
|
|
6234
6234
|
});
|
|
6235
6235
|
if (!version2) {
|
|
6236
6236
|
throw new Error("Version not found");
|
|
@@ -6263,7 +6263,7 @@ function requireEmailDesigner() {
|
|
|
6263
6263
|
const actualDocumentId = template.documentId;
|
|
6264
6264
|
const version2 = await strapi2.documents(EMAIL_TEMPLATE_VERSION_UID).findOne({
|
|
6265
6265
|
documentId: versionDocumentId,
|
|
6266
|
-
populate:
|
|
6266
|
+
populate: { template: true }
|
|
6267
6267
|
});
|
|
6268
6268
|
if (!version2) {
|
|
6269
6269
|
throw new Error("Version not found");
|
package/dist/server/index.mjs
CHANGED
|
@@ -5533,7 +5533,7 @@ function requireOauth() {
|
|
|
5533
5533
|
});
|
|
5534
5534
|
return oauth;
|
|
5535
5535
|
}
|
|
5536
|
-
const version = "2.3.
|
|
5536
|
+
const version = "2.3.7";
|
|
5537
5537
|
const require$$2 = {
|
|
5538
5538
|
version
|
|
5539
5539
|
};
|
|
@@ -5961,7 +5961,7 @@ function requireEmailDesigner() {
|
|
|
5961
5961
|
}
|
|
5962
5962
|
return strapi2.documents(EMAIL_TEMPLATE_UID).findOne({
|
|
5963
5963
|
documentId: String(idOrDocumentId),
|
|
5964
|
-
populate:
|
|
5964
|
+
populate: { versions: true }
|
|
5965
5965
|
});
|
|
5966
5966
|
},
|
|
5967
5967
|
/**
|
|
@@ -5974,7 +5974,7 @@ function requireEmailDesigner() {
|
|
|
5974
5974
|
const byRefId = await strapi2.documents(EMAIL_TEMPLATE_UID).findMany({
|
|
5975
5975
|
filters: { templateReferenceId: numericId },
|
|
5976
5976
|
limit: 1,
|
|
5977
|
-
populate:
|
|
5977
|
+
populate: { versions: true }
|
|
5978
5978
|
});
|
|
5979
5979
|
if (byRefId.length > 0) {
|
|
5980
5980
|
strapi2.log.info(`[magic-mail] [SUCCESS] Found template by templateReferenceId ${numericId}: documentId=${byRefId[0].documentId}, name="${byRefId[0].name}"`);
|
|
@@ -5982,7 +5982,7 @@ function requireEmailDesigner() {
|
|
|
5982
5982
|
}
|
|
5983
5983
|
strapi2.log.info(`[magic-mail] [FALLBACK] templateReferenceId not found, trying internal db id: ${numericId}`);
|
|
5984
5984
|
const byInternalId = await strapi2.entityService.findOne(EMAIL_TEMPLATE_UID, numericId, {
|
|
5985
|
-
populate:
|
|
5985
|
+
populate: { versions: true }
|
|
5986
5986
|
});
|
|
5987
5987
|
if (byInternalId) {
|
|
5988
5988
|
strapi2.log.info(`[magic-mail] [SUCCESS] Found template by internal id ${numericId}: documentId=${byInternalId.documentId}, name="${byInternalId.name}"`);
|
|
@@ -6220,7 +6220,7 @@ function requireEmailDesigner() {
|
|
|
6220
6220
|
const actualDocumentId = template.documentId;
|
|
6221
6221
|
const version2 = await strapi2.documents(EMAIL_TEMPLATE_VERSION_UID).findOne({
|
|
6222
6222
|
documentId: versionDocumentId,
|
|
6223
|
-
populate:
|
|
6223
|
+
populate: { template: true }
|
|
6224
6224
|
});
|
|
6225
6225
|
if (!version2) {
|
|
6226
6226
|
throw new Error("Version not found");
|
|
@@ -6253,7 +6253,7 @@ function requireEmailDesigner() {
|
|
|
6253
6253
|
const actualDocumentId = template.documentId;
|
|
6254
6254
|
const version2 = await strapi2.documents(EMAIL_TEMPLATE_VERSION_UID).findOne({
|
|
6255
6255
|
documentId: versionDocumentId,
|
|
6256
|
-
populate:
|
|
6256
|
+
populate: { template: true }
|
|
6257
6257
|
});
|
|
6258
6258
|
if (!version2) {
|
|
6259
6259
|
throw new Error("Version not found");
|
package/package.json
CHANGED