ashok 3 months ago
commit f37169ad3f

@ -1321,7 +1321,8 @@ fastify.post("/api/installLogin", {
return reply.send({
success: true,
message: "Login successful",
data: {
simplydata: {
error: false,
access_token: token,
installationId: installation.installationId,
phone: installation.phone,
@ -1545,21 +1546,20 @@ fastify.post("/api/teamMemberLogin", {
{ expiresIn: "1h" }
);
return reply.send({
success: true,
message: "Login successful",
data: {
access_token: token,
phone: teamMember.phone,
firstName: teamMember.firstName,
teamMemberId: teamMember.teamMemberId,
alternativePhone: teamMember.alternativePhone,
email: teamMember.email,
status: teamMember.status || "active",
type,
installationId: installation.installationId
}
});
return reply.send({
simplydata: {
error: false,
access_token: token,
phone: teamMember.phone,
firstName: teamMember.firstName,
teamMemberId: teamMember.teamMemberId,
alternativePhone: teamMember.alternativePhone,
email: teamMember.email,
status: teamMember.status || "active",
type: type,
installationId: installation.installationId
}
});
} catch (err) {
console.error("teamMemberLogin error:", err);
reply.code(500).send({ message: "Internal server error" });

Loading…
Cancel
Save