Created
October 10, 2021 05:59
-
-
Save Pyrolistical/92fca3fddfb083a3e34f9f26e5d32b20 to your computer and use it in GitHub Desktop.
separate business layer from infrastructure layer after alternative checkInTeam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async checkInTeam(teamID) { | |
return db.collection('teams').updateOne({ | |
_id: teamID | |
}, { | |
$set: { | |
checkedInAt: new Date() | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment