Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMattiussi committed Oct 19, 2023
1 parent 9096ff2 commit 353c25a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/js/admin/api/precomputed.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
getPreviewDataPrecomputedRequest,
getUpdatePrecomputedRequest,
} from '../../user';
import { getUserLocalStorageInfo } from './tools';
import { getUserSessionStorageInfo } from './tools';

export const getPreviewPrecomputed = previewPrecomputed => {
const { token } = getUserLocalStorageInfo();
const { token } = getUserSessionStorageInfo();
const request = getPreviewDataPrecomputedRequest(
{ token },
previewPrecomputed,
Expand All @@ -17,19 +17,19 @@ export const getPreviewPrecomputed = previewPrecomputed => {
};

export const createPrecomputed = precomputed => {
const { token } = getUserLocalStorageInfo();
const { token } = getUserSessionStorageInfo();
const request = getCreatePrecomputedRequest({ token }, precomputed);
return fetch(request);
};

export const updatePrecomputed = precomputed => {
const { token } = getUserLocalStorageInfo();
const { token } = getUserSessionStorageInfo();
const request = getUpdatePrecomputedRequest({ token }, precomputed);
return fetch(request);
};

export const deletePrecomputed = id => {
const { token } = getUserLocalStorageInfo();
const { token } = getUserSessionStorageInfo();
const request = getDeletePrecomputedRequest({ token }, id);
return fetch(request);
};
Expand Down

0 comments on commit 353c25a

Please sign in to comment.