@@ -23,51 +23,17 @@ All portions of the code written by the Ethereal Engine team are Copyright Β© 20
2323Ethereal Engine. All Rights Reserved.
2424*/
2525
26- import type { NullableId , Params } from '@feathersjs/feathers'
27- import type { KnexAdapterOptions } from '@feathersjs/knex'
28- import { KnexAdapter , KnexAdapterParams } from '@feathersjs/knex'
26+ import type { Params } from '@feathersjs/feathers'
27+ import { KnexAdapterParams , KnexService } from '@feathersjs/knex'
2928
3029import { RouteData , RoutePatch , RouteQuery , RouteType } from '@etherealengine/engine/src/schemas/route/route.schema'
31- import { Id } from '@feathersjs/feathers'
32- import { Application } from '../../../declarations'
3330
3431// eslint-disable-next-line @typescript-eslint/no-empty-interface
3532export interface RouteParams extends KnexAdapterParams < RouteQuery > { }
3633
37- export class RouteService < T = RouteType , ServiceParams extends Params = RouteParams > extends KnexAdapter <
34+ export class RouteService < T = RouteType , ServiceParams extends Params = RouteParams > extends KnexService <
3835 RouteType ,
3936 RouteData ,
4037 RouteParams ,
4138 RoutePatch
42- > {
43- app : Application
44-
45- constructor ( options : KnexAdapterOptions , app : Application ) {
46- super ( options )
47- this . app = app
48- }
49-
50- async find ( params ?: RouteParams ) {
51- if ( params ?. query ?. paginate != null ) {
52- if ( params . query . paginate === false ) params . paginate = params . query . paginate
53- delete params . query . paginate
54- }
55- return super . _find ( params )
56- }
57-
58- async create ( data : RouteData , params ?: RouteParams ) {
59- return super . _create ( data , params )
60- }
61-
62- async get ( id : Id , params ?: RouteParams ) {
63- return super . _get ( id , params )
64- }
65-
66- async patch ( id : Id , data : RouteData , params ?: RouteParams ) {
67- return super . _patch ( id , data , params )
68- }
69-
70- async remove ( id : NullableId , params ?: RouteParams ) {
71- return super . _remove ( id , params )
72- }
73- }
39+ > { }
0 commit comments