File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
1
import AppServices from '~~/server/services/appServices' ;
2
2
3
3
export default defineEventHandler ( async ( event ) => {
4
- await new AppServices ( event ) . delete (
5
- event . context . params ?. id ?? ''
6
- ) ;
4
+ await new AppServices ( event ) . delete ( event . context . params ?. id ?? '' ) ;
7
5
8
6
return null ;
9
7
} ) ;
Original file line number Diff line number Diff line change @@ -20,10 +20,7 @@ export default class AppServices extends SupabaseService {
20
20
}
21
21
22
22
async delete ( id : string ) {
23
- const apps = await this . client
24
- . from ( 'apps' )
25
- . delete ( )
26
- . eq ( 'id' , id ) ;
23
+ const apps = await this . client . from ( 'apps' ) . delete ( ) . eq ( 'id' , id ) ;
27
24
28
25
if ( apps . error !== null ) {
29
26
throw ErrorResponse . supabase ( apps . error ) ;
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ export default class ModelDataService extends SupabaseService {
44
44
45
45
async deleteByModelId ( modelId : string ) {
46
46
return await this . client
47
- . from ( 'model_data' )
48
- . delete ( )
49
- . eq ( 'model_id' , modelId ) ;
47
+ . from ( 'model_data' )
48
+ . delete ( )
49
+ . eq ( 'model_id' , modelId ) ;
50
50
}
51
51
52
52
async list ( modelId : string ) {
You can’t perform that action at this time.
0 commit comments