mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-09-30 18:29:36 +02:00
global: add support for -DSTAGING
This commit is contained in:
1 parent
c6bcd4a84d
commit
e5bf3367cc
9 files changed
+137
-148
No files matched your search
@@ -56,7 +56,7 @@ namespace Streetwriters.Data.DbContexts
|
||||
|
||||
using (IClientSessionHandle session = await MongoClient.StartSessionAsync())
|
||||
{
|
||||
#if DEBUG
|
||||
#if (DEBUG || STAGING)
|
||||
await Parallel.ForEachAsync(_commands, async (c, ct) => await c(session, ct));
|
||||
#else
|
||||
await session.WithTransactionAsync(async (handle, token) =>
|
||||
|
||||
Reference in new issue
Block a user