payload-plugin-newsletter 0.17.2 → 0.17.4

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.
@@ -1344,7 +1344,7 @@ async function requireAdmin(req, config) {
1344
1344
  // src/endpoints/broadcasts/send.ts
1345
1345
  var createSendBroadcastEndpoint = (config, collectionSlug) => {
1346
1346
  return {
1347
- path: `/${collectionSlug}/:id/send`,
1347
+ path: "/:id/send",
1348
1348
  method: "post",
1349
1349
  handler: async (req) => {
1350
1350
  try {
@@ -1428,7 +1428,7 @@ var createSendBroadcastEndpoint = (config, collectionSlug) => {
1428
1428
  init_types();
1429
1429
  var createScheduleBroadcastEndpoint = (config, collectionSlug) => {
1430
1430
  return {
1431
- path: `/${collectionSlug}/:id/schedule`,
1431
+ path: "/:id/schedule",
1432
1432
  method: "post",
1433
1433
  handler: async (req) => {
1434
1434
  try {
@@ -1531,7 +1531,7 @@ var createScheduleBroadcastEndpoint = (config, collectionSlug) => {
1531
1531
  // src/endpoints/broadcasts/test.ts
1532
1532
  var createTestBroadcastEndpoint = (config, collectionSlug) => {
1533
1533
  return {
1534
- path: `/${collectionSlug}/:id/test`,
1534
+ path: "/:id/test",
1535
1535
  method: "post",
1536
1536
  handler: async (req) => {
1537
1537
  try {
@@ -1612,9 +1612,9 @@ var createTestBroadcastEndpoint = (config, collectionSlug) => {
1612
1612
  };
1613
1613
 
1614
1614
  // src/endpoints/broadcasts/preview.ts
1615
- var createBroadcastPreviewEndpoint = (config, collectionSlug) => {
1615
+ var createBroadcastPreviewEndpoint = (config, _collectionSlug) => {
1616
1616
  return {
1617
- path: `/${collectionSlug}/preview`,
1617
+ path: "/preview",
1618
1618
  method: "post",
1619
1619
  handler: async (req) => {
1620
1620
  try {