Browse Source

refactor(nocodb): revise response message

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
d716cc0070
  1. 5
      packages/nocodb/src/lib/controllers/dbData/data.ctl.ts
  2. 4
      packages/nocodb/src/lib/controllers/dbData/dataAliasNested.ctl.ts
  3. 2
      packages/nocodb/src/lib/controllers/modelVisibility.ctl.ts
  4. 4
      packages/nocodb/src/lib/controllers/orgUser.ctl.ts

5
packages/nocodb/src/lib/controllers/dbData/data.ctl.ts

@ -118,10 +118,9 @@ async function relationDataDelete(req, res) {
cookie: req,
});
res.json({ msg: 'success' });
res.json({ msg: 'The relation data has been deleted successfully' });
}
//@ts-ignore
async function relationDataAdd(req, res) {
await dataService.relationDataAdd({
viewId: req.params.viewId,
@ -131,7 +130,7 @@ async function relationDataAdd(req, res) {
cookie: req,
});
res.json({ msg: 'success' });
res.json({ msg: 'The relation data has been created successfully' });
}
const router = Router({ mergeParams: true });

4
packages/nocodb/src/lib/controllers/dbData/dataAliasNested.ctl.ts

@ -77,7 +77,7 @@ async function relationDataRemove(req, res) {
refRowId: req.params.refRowId,
});
res.json({ msg: 'success' });
res.json({ msg: 'The relation data has been deleted successfully' });
}
//@ts-ignore
@ -92,7 +92,7 @@ async function relationDataAdd(req, res) {
refRowId: req.params.refRowId,
});
res.json({ msg: 'success' });
res.json({ msg: 'The relation data has been created successfully' });
}
const router = Router({ mergeParams: true });

2
packages/nocodb/src/lib/controllers/modelVisibility.ctl.ts

@ -9,7 +9,7 @@ async function xcVisibilityMetaSetAll(req, res) {
projectId: req.params.projectId,
});
res.json({ msg: 'success' });
res.json({ msg: 'UI ACL has been created successfully' });
}
const router = Router({ mergeParams: true });

4
packages/nocodb/src/lib/controllers/orgUser.ctl.ts

@ -33,7 +33,7 @@ async function userDelete(req, res) {
await orgUserService.userDelete({
userId: req.params.userId,
});
res.json({ msg: 'success' });
res.json({ msg: 'The user has been deleted successfully' });
}
async function userAdd(req, res) {
@ -57,7 +57,7 @@ async function userInviteResend(req, res): Promise<any> {
req,
});
res.json({ msg: 'success' });
res.json({ msg: 'The invitation has been sent to the user' });
}
async function generateResetUrl(req, res) {

Loading…
Cancel
Save