mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 13:07:58 +00:00
Renamed one more method
This commit is contained in:
parent
3c4437cbbb
commit
68017e19b1
@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import { input } from '../../../actions';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import { PerformInsert } from '../../../../wailsjs/go/app/App';
|
||||
import { InsertItems } from '../../../../wailsjs/go/app/App';
|
||||
|
||||
export let collection;
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
let insertedIds;
|
||||
|
||||
async function insert() {
|
||||
insertedIds = await PerformInsert(collection.hostKey, collection.dbKey, collection.key, json);
|
||||
insertedIds = await InsertItems(collection.hostKey, collection.dbKey, collection.key, json);
|
||||
}
|
||||
|
||||
function showDocs() {
|
||||
|
4
frontend/wailsjs/go/app/App.d.ts
vendored
4
frontend/wailsjs/go/app/App.d.ts
vendored
@ -14,10 +14,10 @@ export function GetIndexes(arg1:string,arg2:string,arg3:string):Promise<Array<pr
|
||||
|
||||
export function Hosts():Promise<map[string]app.Host>;
|
||||
|
||||
export function InsertItems(arg1:string,arg2:string,arg3:string,arg4:string):Promise<any>;
|
||||
|
||||
export function OpenCollection(arg1:string,arg2:string,arg3:string):Promise<primitive.M>;
|
||||
|
||||
export function OpenConnection(arg1:string):Promise<Array<string>>;
|
||||
|
||||
export function OpenDatabase(arg1:string,arg2:string):Promise<Array<string>>;
|
||||
|
||||
export function PerformInsert(arg1:string,arg2:string,arg3:string,arg4:string):Promise<any>;
|
||||
|
@ -22,6 +22,10 @@ export function Hosts() {
|
||||
return window['go']['app']['App']['Hosts']();
|
||||
}
|
||||
|
||||
export function InsertItems(arg1, arg2, arg3, arg4) {
|
||||
return window['go']['app']['App']['InsertItems'](arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
export function OpenCollection(arg1, arg2, arg3) {
|
||||
return window['go']['app']['App']['OpenCollection'](arg1, arg2, arg3);
|
||||
}
|
||||
@ -33,7 +37,3 @@ export function OpenConnection(arg1) {
|
||||
export function OpenDatabase(arg1, arg2) {
|
||||
return window['go']['app']['App']['OpenDatabase'](arg1, arg2);
|
||||
}
|
||||
|
||||
export function PerformInsert(arg1, arg2, arg3, arg4) {
|
||||
return window['go']['app']['App']['PerformInsert'](arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/wailsapp/wails/v2/pkg/runtime"
|
||||
)
|
||||
|
||||
func (a *App) PerformInsert(hostKey, dbKey, collKey, jsonData string) interface{} {
|
||||
func (a *App) InsertItems(hostKey, dbKey, collKey, jsonData string) interface{} {
|
||||
var data []interface{}
|
||||
|
||||
jsonData = strings.TrimSpace(jsonData)
|
||||
|
Loading…
Reference in New Issue
Block a user