Update entrypoints.js

(cherry picked from commit 08ec866dd269eca54b37db32284ede1402d560c3)
This commit is contained in:
mechanarchy 2023-06-10 07:44:23 +10:00 committed by zadam
parent 004cfe1965
commit 4a1ecd906b

View File

@ -173,7 +173,7 @@ export default class Entrypoints extends Component {
const resp = await server.post(`sql/execute/${note.noteId}`);
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});