diff --git a/Notesnook.API/Hubs/SyncV2Hub.cs b/Notesnook.API/Hubs/SyncV2Hub.cs index fc536e6..30b1f19 100644 --- a/Notesnook.API/Hubs/SyncV2Hub.cs +++ b/Notesnook.API/Hubs/SyncV2Hub.cs @@ -101,25 +101,6 @@ namespace Notesnook.API.Hubs }; } - private Func, bool, int, Task>> MapTypeToFindItemsAction(string type) - { - return type switch - { - "settingitem" => Repositories.Settings.FindItemsById, - "attachment" => Repositories.Attachments.FindItemsById, - "note" => Repositories.Notes.FindItemsById, - "notebook" => Repositories.Notebooks.FindItemsById, - "content" => Repositories.Contents.FindItemsById, - "shortcut" => Repositories.Shortcuts.FindItemsById, - "reminder" => Repositories.Reminders.FindItemsById, - "relation" => Repositories.Relations.FindItemsById, - "color" => Repositories.Colors.FindItemsById, - "vault" => Repositories.Vaults.FindItemsById, - "tag" => Repositories.Tags.FindItemsById, - _ => null, - }; - } - public async Task PushItems(string deviceId, SyncTransferItemV2 pushItem) { var userId = Context.User.FindFirstValue("sub");