forked from FoundKeyGang/FoundKey
Add todo
This commit is contained in:
parent
85d98f1e37
commit
ef30390e76
1 changed files with 8 additions and 1 deletions
|
@ -5,7 +5,7 @@ import undo from './undo';
|
||||||
import { IObject } from '../type';
|
import { IObject } from '../type';
|
||||||
import { IRemoteUser } from '../../../models/user';
|
import { IRemoteUser } from '../../../models/user';
|
||||||
|
|
||||||
export default async (actor: IRemoteUser, activity: IObject): Promise<void> => {
|
const self = 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);
|
||||||
|
@ -27,8 +27,15 @@ export default async (actor: IRemoteUser, activity: IObject): Promise<void> => {
|
||||||
await undo(actor, activity);
|
await undo(actor, activity);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'Collection':
|
||||||
|
case 'OrderedCollection':
|
||||||
|
// TODO
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.warn(`unknown activity type: ${activity.type}`);
|
console.warn(`unknown activity type: ${activity.type}`);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default self;
|
||||||
|
|
Loading…
Reference in a new issue