1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/lib/services/rest/utils/readonlyProperties.ts

6 lines
271 B
TypeScript
Raw Normal View History

export default function readonlyProperties(requestMethod: string) {
2020-11-05 18:58:23 +02:00
const output = ['created_time', 'updated_time', 'encryption_blob_encrypted', 'encryption_applied', 'encryption_cipher_text'];
if (requestMethod !== 'POST') output.splice(0, 0, 'id');
return output;
}