diff --git a/dist/src/controllers/contacts.js b/dist/src/controllers/contacts.js index c9bfc54..78353d5 100644 --- a/dist/src/controllers/contacts.js +++ b/dist/src/controllers/contacts.js @@ -88,6 +88,7 @@ exports.updateContact = (req, res) => __awaiter(void 0, void 0, void 0, function if (!(attrs['contact_key'] || attrs['alias'] || attrs['photo_url'])) { return; // skip if not at least one of these } + console.log("PHOTO URL", attrs["photo_url"], contact.photoUrl); const contactKeyChanged = attrs['contact_key'] && contact.contactKey !== attrs['contact_key']; const aliasChanged = attrs['alias'] && contact.alias !== attrs['alias']; const photoChanged = attrs['photo_url'] && contact.photoUrl !== attrs['photo_url']; diff --git a/dist/src/controllers/contacts.js.map b/dist/src/controllers/contacts.js.map index 9d53bdd..28958e9 100644 --- a/dist/src/controllers/contacts.js.map +++ b/dist/src/controllers/contacts.js.map @@ -1 +1 @@ -{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../src/controllers/contacts.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAgC;AAChC,iCAAgC;AAChC,0CAAyC;AACzC,sCAAqC;AACrC,2CAA0C;AAC1C,sCAA6C;AAC7C,gDAAwC;AACxC,yCAA8B;AAC9B,4CAAoC;AAEvB,QAAA,WAAW,GAAG,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;IAC7C,MAAM,QAAQ,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAC,EAAC,OAAO,EAAC,KAAK,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IACnF,MAAM,OAAO,GAAG,MAAM,eAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IAC1D,MAAM,KAAK,GAAG,MAAM,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,KAAK,EAAC,EAAC,OAAO,EAAC,KAAK,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IA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AAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;QAEhC,MAAM,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC;SACzC,CAAC,CAAA;KACF;AACF,CAAC,CAAA,CAAA;AAED,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE;IAC3B,IAAI,gBAAgB,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,YAAY,CAAC,CAAA;IAClL,IAAI,KAAK,GAAG,EAAE,CAAA;IACd,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAC/B,IAAI,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACnC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;SACtB;IACF,CAAC,CAAC,CAAA;IACF,OAAO,KAAK,CAAA;AACb,CAAC,CAAA"} \ No newline at end of file diff --git a/src/controllers/contacts.ts b/src/controllers/contacts.ts index 60ac338..3fe7a6e 100644 --- a/src/controllers/contacts.ts +++ b/src/controllers/contacts.ts @@ -91,6 +91,7 @@ export const updateContact = async (req, res) => { if (!(attrs['contact_key'] || attrs['alias'] || attrs['photo_url'])) { return // skip if not at least one of these } + console.log("PHOTO URL", attrs["photo_url"], contact.photoUrl) const contactKeyChanged = attrs['contact_key'] && contact.contactKey!==attrs['contact_key'] const aliasChanged = attrs['alias'] && contact.alias!==attrs['alias'] const photoChanged = attrs['photo_url'] && contact.photoUrl!==attrs['photo_url']