mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Update entrypoints.js
(cherry picked from commit 08ec866dd269eca54b37db32284ede1402d560c3)
This commit is contained in:
parent
004cfe1965
commit
4a1ecd906b
@ -173,7 +173,7 @@ export default class Entrypoints extends Component {
|
|||||||
const resp = await server.post(`sql/execute/${note.noteId}`);
|
const resp = await server.post(`sql/execute/${note.noteId}`);
|
||||||
|
|
||||||
if (!resp.success) {
|
if (!resp.success) {
|
||||||
toastService.showError(`Error occurred while executing SQL query: ${resp.message}`);
|
toastService.showError(`Error occurred while executing SQL query: ${resp.error}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
await appContext.triggerEvent('sqlQueryResults', {ntxId: ntxId, results: resp.results});
|
await appContext.triggerEvent('sqlQueryResults', {ntxId: ntxId, results: resp.results});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user