MCPcopy Create free account
hub / github.com/TomDoesTech/REST-API-Tutorial / updateSession

Function updateSession

src/service/session.service.ts:60–65  ·  view source on GitHub ↗
(
  query: FilterQuery<SessionDocument>,
  update: UpdateQuery<SessionDocument>
)

Source from the content-addressed store, hash-verified

58}
59
60export async function updateSession(
61 query: FilterQuery<SessionDocument>,
62 update: UpdateQuery<SessionDocument>
63) {
64 return Session.updateOne(query, update);
65}
66
67export async function findSessions(query: FilterQuery<SessionDocument>) {
68 return Session.find(query).lean();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected