mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
refactor(writeapi): update route prefix to api/v3, default error option
This commit is contained in:
@@ -183,7 +183,7 @@ define('forum/topic/threadTools', [
|
||||
|
||||
const method = command === 'restore' ? 'put' : 'del';
|
||||
const suffix = command !== 'purge' ? '/state' : '';
|
||||
api[method](`/topics/${tid}${suffix}`, undefined, undefined, err => app.alertError(err.status.message));
|
||||
api[method](`/topics/${tid}${suffix}`, undefined, undefined, 'default');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user