master^2
Bhaskar 7 months ago
parent cd8e951e7f
commit 4b4a9b91ec

@ -1254,7 +1254,7 @@ fastify.post("/api/installLogin", {
let store = await Store.findOne({ phone });
if (!store) {
store = new Survey({
store = new Store({
phone: user.phone,
storeId: user.departmentId,
firstName: user.firstName,

@ -222,11 +222,7 @@ const installationschema = new mongoose.Schema({
reportingManager: { type: String, default: null },
departmentName: { type: String, default: null },
zone: { type: String, default: null },
services: {
password: {
bcrypt: { type: String, required: true }
}
},
services: { password: { bcrypt: String } },
description: { type: String, default: null },
startingPrice: { type: String, default: 0.0 },
profile: {

Loading…
Cancel
Save