MCPcopy Create free account
hub / github.com/RealDevSquad/website-backend / createUserFutureStatus

Function createUserFutureStatus

models/userFutureStatus.ts:11–26  ·  view source on GitHub ↗
(body: UserFutureStatusType)

Source from the content-addressed store, hash-verified

9 * @returns UserFutureStatusType
10 */
11export const createUserFutureStatus = async (body: UserFutureStatusType) => {
12 try {
13 const statusBody: UserFutureStatusType = {
14 createdAt: Date.now(),
15 ...body,
16 };
17 const resultDoc = await userFutureStatusModel.add(statusBody);
18 return {
19 id: resultDoc.id,
20 ...body,
21 };
22 } catch (error) {
23 logger.error("Error while creating user future status", error);
24 throw error;
25 }
26};
27
28/**
29 * Function to get user future status

Callers 3

acknowledgeOooRequestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected