mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 04:43:09 +02:00
Fix type annotation
This commit is contained in:
parent
0ecbafe5eb
commit
574e3b0bfd
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@ import performDeleteActivity from './delete';
|
||||||
import follow from './follow';
|
import follow from './follow';
|
||||||
import undo from './undo';
|
import undo from './undo';
|
||||||
import { IObject } from '../type';
|
import { IObject } from '../type';
|
||||||
import { IUser } from '../../../models/user';
|
import { IRemoteUser } from '../../../models/user';
|
||||||
|
|
||||||
export default async (actor: IUser, activity: IObject): Promise<void> => {
|
export default async (actor: IRemoteUser, activity: IObject): Promise<void> => {
|
||||||
switch (activity.type) {
|
switch (activity.type) {
|
||||||
case 'Create':
|
case 'Create':
|
||||||
await create(actor, activity);
|
await create(actor, activity);
|
||||||
|
|
Loading…
Reference in a new issue