Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/api/Lark/document/copy/[...slug].ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ router.post('/:type/:id', safeAPI, verifyJWT, async (context: Context) => {
? await lark.copyFile(`${type as 'wiki'}/${id}`, name, parentToken)
: await lark.copyFile(`${type as LarkDocumentPathType}/${id}`, name, parentToken);

const newId = 'token' in copiedFile ? copiedFile.token : copiedFile.obj_token;
const newId = 'token' in copiedFile ? copiedFile.token : copiedFile.node_token;
Comment thread
coderabbitai[bot] marked this conversation as resolved.

if (ownerType && ownerId)
try {
Expand Down
Loading