Skip to content

Instantly share code, notes, and snippets.

@Pyrolistical
Created October 10, 2021 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pyrolistical/92fca3fddfb083a3e34f9f26e5d32b20 to your computer and use it in GitHub Desktop.
Save Pyrolistical/92fca3fddfb083a3e34f9f26e5d32b20 to your computer and use it in GitHub Desktop.
separate business layer from infrastructure layer after alternative checkInTeam
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