adapt lock to new deserializer

This commit is contained in:
Ruben Fiszel
2024-01-18 16:11:49 +01:00
parent 42c2b5b6dd
commit c4320556fc
5 changed files with 5 additions and 5 deletions
@@ -263,7 +263,7 @@
workspace: workspaceToDeployTo!,
requestBody: {
...script,
lock: script.lock?.split('\n'),
lock: script.lock,
parent_hash: alreadyExists
? (
await ScriptService.getScriptByPath({
@@ -67,7 +67,7 @@
requestBody: {
...script,
description: script.description ?? '',
lock: script.lock?.split('\n'),
lock: script.lock,
parent_hash: script.hash,
path: path ?? ''
}
@@ -59,7 +59,7 @@
requestBody: {
...r,
parent_hash: r.hash,
lock: r.lock?.split('\n')
lock: r.lock
}
})
dispatch('change')
+1 -1
View File
@@ -15,7 +15,7 @@ export async function unarchiveScript(hash: string, workspace: string) {
requestBody: {
...r,
parent_hash: hash,
lock: r.lock?.split('\n')
lock: r.lock
}
})
return ns
@@ -116,7 +116,7 @@
requestBody: {
...r,
parent_hash: hash,
lock: r.lock?.split('\n')
lock: r.lock
}
})
sendUserToast(`Unarchived script`)