mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-13 23:30:45 +02:00
inbox: remove 'Default' api key creation (#100)
This commit is contained in:
1 parent
6663778e3e
commit
7f614f6954
1 file changed
-9
@@ -174,15 +174,6 @@ namespace Notesnook.API.Services
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
userSettings.InboxKeys = keys.InboxKeys;
|
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);
|
await Repositories.InboxItems.DeleteManyAsync(t => t.UserId == userId);
|
||||||
|
|||||||
Reference in new issue
Block a user