link mac test server
This commit is contained in:
@@ -620,6 +620,7 @@ export default function App() {
|
|||||||
|
|
||||||
// Notify the owner
|
// Notify the owner
|
||||||
if (sharedLookData.ownerUid && sharedLookData.ownerUid !== user.uid) {
|
if (sharedLookData.ownerUid && sharedLookData.ownerUid !== user.uid) {
|
||||||
|
try {
|
||||||
const notificationsCol = collection(db, 'artifacts', appId, 'users', sharedLookData.ownerUid, 'notifications');
|
const notificationsCol = collection(db, 'artifacts', appId, 'users', sharedLookData.ownerUid, 'notifications');
|
||||||
await addDoc(notificationsCol, {
|
await addDoc(notificationsCol, {
|
||||||
type: 'look_copied',
|
type: 'look_copied',
|
||||||
@@ -628,6 +629,9 @@ export default function App() {
|
|||||||
createdAt: new Date().getTime(),
|
createdAt: new Date().getTime(),
|
||||||
read: false
|
read: false
|
||||||
});
|
});
|
||||||
|
} catch (notifErr) {
|
||||||
|
console.warn('Não foi possível enviar notificação ao dono do look:', notifErr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setShowSharedLookModal(false);
|
setShowSharedLookModal(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user