mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-11 12:17:41 +02:00
refactor: change variable from isDisableOTP to isEnableOTP
This commit is contained in:
+4
-4
@@ -4,12 +4,12 @@
|
||||
*/
|
||||
exports.up = async Parse => {
|
||||
const templateSchema = new Parse.Schema('contracts_Template');
|
||||
templateSchema.addBoolean('IsDisableOTP');
|
||||
templateSchema.addBoolean('IsEnableOTP');
|
||||
await templateSchema.update();
|
||||
|
||||
const className = 'contracts_Document';
|
||||
const schema = new Parse.Schema(className);
|
||||
schema.addBoolean('IsDisableOTP');
|
||||
schema.addBoolean('IsEnableOTP');
|
||||
return schema.update();
|
||||
};
|
||||
|
||||
@@ -19,11 +19,11 @@ exports.up = async Parse => {
|
||||
*/
|
||||
exports.down = async Parse => {
|
||||
const templateSchema = new Parse.Schema('contracts_Template');
|
||||
templateSchema.deleteField('IsDisableOTP');
|
||||
templateSchema.deleteField('IsEnableOTP');
|
||||
await templateSchema.update();
|
||||
|
||||
const className = 'contracts_Document';
|
||||
const schema = new Parse.Schema(className);
|
||||
schema.deleteField('IsDisableOTP');
|
||||
schema.deleteField('IsEnableOTP');
|
||||
return schema.update();
|
||||
};
|
||||
Reference in New Issue
Block a user