From 7a7724e66e4533523083e7336cd0d0c747c4a33b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 13 Nov 2017 17:39:41 +0100 Subject: Handle follow/accept --- server/models/account/account-follow-interface.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'server/models/account/account-follow-interface.ts') diff --git a/server/models/account/account-follow-interface.ts b/server/models/account/account-follow-interface.ts index 3be383649..efdff915e 100644 --- a/server/models/account/account-follow-interface.ts +++ b/server/models/account/account-follow-interface.ts @@ -1,17 +1,19 @@ import * as Sequelize from 'sequelize' -import * as Promise from 'bluebird' - -import { VideoRateType } from '../../../shared/models/videos/video-rate.type' +import * as Bluebird from 'bluebird' +import { FollowState } from '../../../shared/models/accounts/follow.model' export namespace AccountFollowMethods { + export type LoadByAccountAndTarget = (accountId: number, targetAccountId: number) => Bluebird } export interface AccountFollowClass { + loadByAccountAndTarget: AccountFollowMethods.LoadByAccountAndTarget } export interface AccountFollowAttributes { accountId: number targetAccountId: number + state: FollowState } export interface AccountFollowInstance extends AccountFollowClass, AccountFollowAttributes, Sequelize.Instance { -- cgit v1.2.3