Move all firbase dependencies from actions layer to firebaseService layer (#13)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { User } from 'domain/users'
|
||||
import { Vote } from 'domain/votes'
|
||||
|
||||
/**
|
||||
* Vote service interface
|
||||
@@ -7,5 +8,7 @@ import { User } from 'domain/users'
|
||||
* @interface IVoteService
|
||||
*/
|
||||
export interface IVoteService {
|
||||
|
||||
addVote: (vote: Vote) => Promise<string>
|
||||
getVotes: () => Promise<{[postId: string]: {[voteId: string]: Vote}}>
|
||||
deleteVote: (voteId: string, postId: string) => Promise<void>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user