diff --git a/src/index.js b/src/index.js index bb89d120..62c7a714 100644 --- a/src/index.js +++ b/src/index.js @@ -1884,6 +1884,7 @@ fastify.post("/api/installLogin", { zone: user.zone, address1: user.address1, address2: user.address2, + picture: user.picture, profile: { state: user.state, country: user.country, @@ -1921,6 +1922,7 @@ fastify.post("/api/installLogin", { fcmId: installation.fcmId, alternativeNumber: installation.alternativeNumber, phoneVerified: installation.phoneVerified, + picture: installation.picture }, }); } catch (err) { diff --git a/src/models/store.js b/src/models/store.js index 604c7370..83b3c674 100644 --- a/src/models/store.js +++ b/src/models/store.js @@ -136,6 +136,7 @@ const installationschema = new mongoose.Schema({ team: { type: String, default: null }, manager: { type: String, default: null }, + picture:{type:String}, team_member: { team_member: [