From 7f614f69544228d3dccba9a97a75ecec012fe4c8 Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Thu, 14 May 2026 11:09:28 +0500 Subject: [PATCH] inbox: remove 'Default' api key creation (#100) --- Notesnook.API/Services/UserService.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Notesnook.API/Services/UserService.cs b/Notesnook.API/Services/UserService.cs index fdd1841..c9e2c24 100644 --- a/Notesnook.API/Services/UserService.cs +++ b/Notesnook.API/Services/UserService.cs @@ -174,15 +174,6 @@ namespace Notesnook.API.Services else { userSettings.InboxKeys = keys.InboxKeys; - var defaultInboxKey = new InboxApiKey - { - UserId = userId, - Name = "Default", - DateCreated = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(), - ExpiryDate = DateTimeOffset.UtcNow.AddYears(1).ToUnixTimeMilliseconds(), - LastUsedAt = 0 - }; - await Repositories.InboxApiKey.InsertAsync(defaultInboxKey); } await Repositories.InboxItems.DeleteManyAsync(t => t.UserId == userId);