UNPKG

@xrengine/server-core

Version:

Shared components for XREngine server

18 lines (13 loc) 384 B
import { Hook, HookContext } from '@feathersjs/feathers' import { Application } from './../../declarations' export default (): Hook => { return async (context: HookContext<Application>): Promise<HookContext> => { const { app, id } = context await app.service('message-status').Model.destroy({ where: { messageId: id } }) return context } }