File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
src/routes/[username]/[slug] Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 6464 const forkResponse = await fetch (' /api/configs' , {
6565 method: ' POST' ,
6666 headers: { ' Content-Type' : ' application/json' },
67- body: JSON .stringify ({
68- name: ` ${data .config .name } (fork) ` ,
69- description: ` Forked from @${data .configUser .username } ` ,
70- base_preset: data .config .base_preset ,
71- packages: data .config .packages ,
72- is_public: true ,
73- custom_script: data .config .custom_script || ' ' ,
74- dotfiles_repo: data .config .dotfiles_repo || ' '
75- })
67+ body: JSON .stringify ({
68+ name: ` ${data .config .name } (fork) ` ,
69+ description: ` Forked from @${data .configUser .username } ` ,
70+ base_preset: data .config .base_preset ,
71+ packages: data .config .packages ,
72+ is_public: true ,
73+ custom_script: data .config .custom_script || ' ' ,
74+ dotfiles_repo: data .config .dotfiles_repo || ' ' ,
75+ snapshot: data .config .snapshot || null ,
76+ snapshot_at: data .config .snapshot_at || null
77+ })
7678 });
7779
7880 if (! forkResponse .ok ) {
You can’t perform that action at this time.
0 commit comments