File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import TextCompletePlugin from "../../plugins/adminforth-text-complete";
9
9
import UploadPlugin from "../../plugins/adminforth-upload" ;
10
10
import ImportExportPlugin from "../../plugins/adminforth-import-export/index.js" ;
11
11
import { v1 as uuid } from "uuid" ;
12
+ import { admin } from '../index.js' ;
12
13
import RichEditorPlugin from "../../plugins/adminforth-rich-editor" ;
13
14
import { AdminForthResourceInput } from "../../adminforth" ;
14
15
import CompletionAdapterOpenAIChatGPT from "../../adapters/adminforth-completion-adapter-open-ai-chat-gpt/index.js" ;
@@ -388,7 +389,7 @@ export default {
388
389
confirm :
389
390
"Are you sure you want to mark all selected apartments as listed?" ,
390
391
action : async function ( { selectedIds, adminUser } : any ) {
391
- const stmt = db . prepare (
392
+ const stmt = admin . resource ( 'aparts' ) . dataConnector . client . prepare (
392
393
`UPDATE apartments SET listed = 1 WHERE id IN (${ selectedIds
393
394
. map ( ( ) => "?" )
394
395
. join ( "," ) } )`
You can’t perform that action at this time.
0 commit comments