Parcourir la source

[frontend] Update /get_history public API in Js code

Harshg999 il y a 4 ans
Parent
commit
4eab25ba46

+ 1 - 1
desktop/core/src/desktop/js/api/apiHelper.js

@@ -1362,7 +1362,7 @@ class ApiHelper {
 
   async getHistory(options) {
     return new Promise((resolve, reject) => {
-      $.get('/notebook/api/get_history', {
+      $.get('/api/editor/get_history', {
         doc_type: options.type,
         limit: options.limit || 50,
         page: options.page || 1,

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/api.ts

@@ -19,7 +19,7 @@ import { ExecutionStatus } from './execution/sqlExecutable';
 import { CancellablePromise } from 'api/cancellablePromise';
 import { get } from 'api/utils';
 
-const HISTORY_API_URL = '/notebook/api/get_history';
+const HISTORY_API_URL = '/api/editor/get_history';
 
 export const formatSql = async (options: {
   statements: string;

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/notebook.js

@@ -632,7 +632,7 @@ class Notebook {
       self.loadingHistory(true);
 
       $.get(
-        '/notebook/api/get_history',
+        '/api/editor/get_history',
         {
           doc_type: self.selectedSnippet(),
           limit: QUERIES_PER_PAGE,