removed unused code
Massimo Melina committed
Aug 1, 2025 at 13:32 UTC
dffc68cfab5d2a992f061d0a289ebb46f9123cb9
3 files changed
+3
-4
admin/src/InstalledPlugins.ts
+1
-1
@@ -99,7 +99,7 @@ export default function InstalledPlugins({ updates }: { updates?: true }) {
99
progress: row.downloading,
100
size,
101
async onClick() {
102
- await apiCall('update_plugin', { id, branch: row.branch }, { timeout: false }).catch(e => {
102
+ await apiCall('update_plugin', { id }, { timeout: false }).catch(e => {
103
throw e.code !== HTTP_FAILED_DEPENDENCY ? e
104
: Error("Failed dependencies: " + e.cause?.map((x: any) => prefix(`plugin "`, x.id || x.repo, `" `) + x.error).join('; '))
105
})
src/api.plugins.ts
+1
-1
@@ -151,7 +151,7 @@ const apis: ApiHandlers = {
151
|| new ApiError(HTTP_SERVER_ERROR)
152
},
153
154
- async update_plugin({ id, branch }) {
154
+ async update_plugin({ id }) {
155
const found = getPluginInfo(id)
156
if (!found)
157
return new ApiError(HTTP_NOT_FOUND)
src/frontEndApis.ts
+1
-2
@@ -11,9 +11,8 @@ import {
11
HTTP_NOT_FOUND, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED
12
} from './const'
13
import {
14
- hasPermission, isRoot, nodeIsDirectory, nodeStats, saveVfs, statusCodeForMissingPerm, urlToNode, VfsNode, walkNode
14
+ hasPermission, isRoot, nodeIsDirectory, nodeStats, statusCodeForMissingPerm, urlToNode, VfsNode, walkNode
15
} from './vfs'
16
-import { simplifyName } from './api.vfs'
16
import fs from 'fs'
17
import { mkdir, rename, copyFile, unlink } from 'fs/promises'
18
import { basename, dirname, join } from 'path'