fix lint
This commit is contained in:
parent
0abe2dfee0
commit
c69b72e199
573 changed files with 3318 additions and 3318 deletions
|
@ -11,12 +11,12 @@ export const meta = {
|
|||
|
||||
params: {
|
||||
password: {
|
||||
validator: $.str
|
||||
validator: $.str,
|
||||
},
|
||||
credentialId: {
|
||||
validator: $.str
|
||||
validator: $.str,
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export default define(meta, async (ps, user) => {
|
||||
|
@ -32,13 +32,13 @@ export default define(meta, async (ps, user) => {
|
|||
// Make sure we only delete the user's own creds
|
||||
await UserSecurityKeys.delete({
|
||||
userId: user.id,
|
||||
id: ps.credentialId
|
||||
id: ps.credentialId,
|
||||
});
|
||||
|
||||
// Publish meUpdated event
|
||||
publishMainStream(user.id, 'meUpdated', await Users.pack(user.id, user, {
|
||||
detail: true,
|
||||
includeSecrets: true
|
||||
includeSecrets: true,
|
||||
}));
|
||||
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue