minor cosmetics for user service
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
const cds = require('@sap/cds');
|
||||
|
||||
const cds = require('@sap/cds')
|
||||
module.exports = cds.service.impl((srv) => {
|
||||
srv.on('READ', 'Me', ({ user }) => {
|
||||
return {
|
||||
ID: user.id,
|
||||
locale: user.locale,
|
||||
tenant: user.tenant,
|
||||
};
|
||||
});
|
||||
});
|
||||
srv.on('READ', 'me', ({ tenant, user, locale }) => ({ id: user.id, locale, tenant }))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user