You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
All: Use Lerna to manage monorepo
This commit is contained in:
5
packages/lib/services/rest/utils/defaultSaveOptions.ts
Normal file
5
packages/lib/services/rest/utils/defaultSaveOptions.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export default function(requestMethod:string, modelId:string = null) {
|
||||
const options:any = { userSideValidation: true };
|
||||
if (requestMethod === 'POST' && modelId) options.isNew = true;
|
||||
return options;
|
||||
}
|
Reference in New Issue
Block a user