Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
seballot committed Sep 29, 2024
1 parent cdd3941 commit 835cfa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/db-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
}, this.handleUpdateOrInsert).subscribe()
supabase.channel(`inventories-changes-${user.id}`).on('postgres_changes', {
event: '*', schema: '*', table: 'inventories', filter: `user_id=eq.${user.id}`,
}, this.handleSessionChange).subscribe()
}, this.handleUpdateOrInsert).subscribe()
supabase.channel(`orders-changes-${user.id}`).on('postgres_changes', {
event: '*', schema: '*', table: 'orders', filter: `user_id=eq.${user.id}`,
}, this.handleUpdateOrInsert).subscribe()
Expand Down Expand Up @@ -71,8 +71,8 @@ export default {
const currentVal = currentObject[attr]
Object.entries(newVal).forEach(([productId, values]) => {
// new produtId added
if (!oldVal[productId]) currentVal[productId] = newObject.buys[productId]
else {
if (!oldVal[productId]) currentVal[productId] = newVal[productId]
else if (values) {
// check if one day value have changed
Object.entries(values).forEach(([dayId, dayValue]) => {
if (oldVal[productId][dayId] != dayValue) currentVal[productId][dayId] = dayValue
Expand Down

0 comments on commit 835cfa5

Please sign in to comment.