[Update Package] Update material-ui v1.0.0-beta.34
This commit is contained in:
16425
package-lock.json
generated
16425
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -13,7 +13,6 @@
|
||||
"build": "npm-run-all build-css build-js",
|
||||
"test": "react-scripts-ts test --env=jsdom",
|
||||
"eject": "react-scripts-ts eject",
|
||||
"watch": "webpack -w",
|
||||
"deploy:firebase": "npm run build && firebase deploy"
|
||||
},
|
||||
"author": "Amir Movahedi",
|
||||
@@ -31,7 +30,7 @@
|
||||
"inversify": "^4.6.0",
|
||||
"keycode": "^2.1.9",
|
||||
"lodash": "^4.17.4",
|
||||
"material-ui": "^1.0.0-beta.33",
|
||||
"material-ui": "^1.0.0-beta.34",
|
||||
"material-ui-icons": "^1.0.0-beta.17",
|
||||
"moment": "^2.18.1",
|
||||
"morgan": "^1.8.1",
|
||||
|
||||
@@ -5,6 +5,7 @@ import { SocialError } from 'core/domain/common'
|
||||
import { Vote } from 'core/domain/votes'
|
||||
import { IVoteService } from 'core/services/votes'
|
||||
import { injectable } from 'inversify'
|
||||
import { Post } from 'core/domain/posts/post'
|
||||
|
||||
/**
|
||||
* Firbase vote service
|
||||
@@ -30,7 +31,7 @@ export class VoteService implements IVoteService {
|
||||
db.runTransaction((transaction) => {
|
||||
return transaction.get(postRef).then((postDoc) => {
|
||||
if (postDoc.exists) {
|
||||
const post = postDoc.data()
|
||||
const post = postDoc.data() as Post
|
||||
let {votes, score} = post
|
||||
if (!votes) {
|
||||
votes = {}
|
||||
@@ -84,7 +85,7 @@ export class VoteService implements IVoteService {
|
||||
db.runTransaction((transaction) => {
|
||||
return transaction.get(postRef).then((postDoc) => {
|
||||
if (postDoc.exists) {
|
||||
const post = postDoc.data()
|
||||
const post = postDoc.data() as Post
|
||||
let {votes, score} = post
|
||||
if (!votes) {
|
||||
votes = {}
|
||||
|
||||
Reference in New Issue
Block a user