mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #18225 from overleaf/em-typescript-eslint
Add typescript-eslint rule: no-floating-promises GitOrigin-RevId: 8c3decdff537c885f5bfeb5250b7805480bc6602
This commit is contained in:
@@ -169,6 +169,8 @@ module.exports = LaunchpadController = {
|
||||
return next(err)
|
||||
}
|
||||
|
||||
// Ignore spurious floating promises warning until we promisify
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
User.updateOne(
|
||||
{ _id: user._id },
|
||||
{
|
||||
@@ -245,6 +247,8 @@ module.exports = LaunchpadController = {
|
||||
}
|
||||
|
||||
logger.debug({ userId: user._id }, 'making user an admin')
|
||||
// Ignore spurious floating promises warning until we promisify
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
User.updateOne(
|
||||
{ _id: user._id },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user