mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 14:58:12 +03:00
Fix undocumented issue with monk
This commit is contained in:
@@ -13,11 +13,13 @@ export function GetOrSetUserLock(userID: integer) {
|
||||
userID,
|
||||
},
|
||||
{
|
||||
userID,
|
||||
$set: { userID },
|
||||
},
|
||||
{
|
||||
upsert: true,
|
||||
returnDocument: "before",
|
||||
// this is marked as deprecated, but it shouldn't be, as returnDocument: "before"
|
||||
// does nothing.
|
||||
returnOriginal: true,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ export async function GetNextCounterValue(counterName: string): Promise<integer>
|
||||
},
|
||||
},
|
||||
{
|
||||
// this is marked as deprecated, but it shouldn't be, as returnDocument: "before"
|
||||
// does nothing.
|
||||
returnOriginal: true,
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user