From 5ea06e5a0c5ba6c4c78eef07291c049b6ed22b82 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 15 Nov 2022 13:20:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20error=20when=20importing?= =?UTF-8?q?=20members?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes TryGhost/Team#2266 The getCreatedEvents method was removed but was still used in the verification trigger. This commit adds the method again as a quick fix. A better fix will be commited later: https://github.com/TryGhost/Ghost/pull/15831, which includes tests that also have been ran on this change (but keeping it out of this commit to keep changes minimal). --- ghost/members-api/lib/repositories/event.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ghost/members-api/lib/repositories/event.js b/ghost/members-api/lib/repositories/event.js index 568b17ecbc..ba12c9a96c 100644 --- a/ghost/members-api/lib/repositories/event.js +++ b/ghost/members-api/lib/repositories/event.js @@ -294,6 +294,13 @@ module.exports = class EventRepository { }; } + /** + * @deprecated Do not use + */ + async getCreatedEvents(options = {}, filter) { + return await this.getSignupEvents(options, filter); + } + async getSignupEvents(options = {}, filter) { options = { ...options,