Function
moveScript
(
id: number,
newRank: number,
newCollectionId: number,
)
Source from the content-addressed store, hash-verified
| 190 | }); |
| 191 | |
| 192 | const moveScript = ( |
| 193 | id: number, |
| 194 | newRank: number, |
| 195 | newCollectionId: number, |
| 196 | ): Promise<Response> => |
| 197 | fetch(BASE_PATH + `api/scripts/${id}/move`, { |
| 198 | method: 'POST', |
| 199 | headers: DEFAULT_HEADERS, |
| 200 | body: JSON.stringify({ |
| 201 | newRank, |
| 202 | newCollectionId, |
| 203 | }), |
| 204 | }); |
| 205 | |
| 206 | const deleteScript = (id: number): Promise<Response> => |
| 207 | fetch(BASE_PATH + `api/scripts/${id}`, { |
Tested by
no test coverage detected