mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-23 06:51: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}`), {
|
||||
[`items.${id}`]: true
|
||||
});
|
||||
batch.update(doc(remoteDb, `users/${window.user.uid}`), {
|
||||
[`items.${id}`]: true
|
||||
});
|
||||
|
||||
// Set these items on our cached user object too
|
||||
window.user.items = window.user.items || {};
|
||||
window.user.items[id] = true;
|
||||
|
Reference in New Issue
Block a user