Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Modified chained assignment expressions to become clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed May 6, 2023
1 parent f0976d7 commit 440c277
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/MongoConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ let cache = global.mongoose;
if ( typeof cache === "undefined" )
{
// Si aucune connexion n'est établie, on se prépare à en établir une.
cache = global.mongoose = { conn: undefined, promise: undefined };
cache = { conn: undefined, promise: undefined };
global.mongoose = cache;
}

export async function ConnectToMongoDB()
Expand Down

0 comments on commit 440c277

Please sign in to comment.