mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-23 23:11:12 +02:00
remove extra code
This commit is contained in:
@@ -177,9 +177,7 @@ export const itemService = {
|
|||||||
batch.update(doc(remoteDb, `users/${window.user.uid}`), {
|
batch.update(doc(remoteDb, `users/${window.user.uid}`), {
|
||||||
[`items.${id}`]: true
|
[`items.${id}`]: true
|
||||||
});
|
});
|
||||||
batch.update(doc(remoteDb, `users/${window.user.uid}`), {
|
|
||||||
[`items.${id}`]: true
|
|
||||||
});
|
|
||||||
// Set these items on our cached user object too
|
// Set these items on our cached user object too
|
||||||
window.user.items = window.user.items || {};
|
window.user.items = window.user.items || {};
|
||||||
window.user.items[id] = true;
|
window.user.items[id] = true;
|
||||||
|
Reference in New Issue
Block a user