PLT-2600/PLT-2770 Changed getPublicLink api call to return a proper JSON string (#2914)
* Removed unused channelId and userId parameters from web client getPublicLink method * Changed getPublicLink api call to return a proper JSON string
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
6c75662b82
Коммит
e1cae3b15b
@@ -1344,8 +1344,8 @@ export function regenCommandToken(id) {
|
||||
);
|
||||
}
|
||||
|
||||
export function getPublicLink(channelId, userId, filename, success, error) {
|
||||
const callName = 'getPublicLink' + channelId + userId + filename;
|
||||
export function getPublicLink(filename, success, error) {
|
||||
const callName = 'getPublicLink' + filename;
|
||||
|
||||
if (isCallInProgress(callName)) {
|
||||
return;
|
||||
@@ -1354,8 +1354,6 @@ export function getPublicLink(channelId, userId, filename, success, error) {
|
||||
callTracker[callName] = utils.getTimestamp();
|
||||
|
||||
Client.getPublicLink(
|
||||
channelId,
|
||||
userId,
|
||||
filename,
|
||||
(link) => {
|
||||
callTracker[callName] = 0;
|
||||
|
||||
Ссылка в новой задаче
Block a user