fix lint
This commit is contained in:
@ -13,7 +13,7 @@ async function main(name: string, url: string, alias?: string): Promise<any> {
|
||||
name,
|
||||
url,
|
||||
aliases,
|
||||
updatedAt: new Date()
|
||||
updatedAt: new Date(),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -9,9 +9,9 @@ async function main(username: string) {
|
||||
|
||||
const res = await Users.update({
|
||||
usernameLower: username.toLowerCase(),
|
||||
host: null
|
||||
host: null,
|
||||
}, {
|
||||
isAdmin: false
|
||||
isAdmin: false,
|
||||
});
|
||||
|
||||
if (res.affected !== 1) {
|
||||
|
@ -9,9 +9,9 @@ async function main(username: string) {
|
||||
|
||||
const res = await Users.update({
|
||||
usernameLower: username.toLowerCase(),
|
||||
host: null
|
||||
host: null,
|
||||
}, {
|
||||
isAdmin: true
|
||||
isAdmin: true,
|
||||
});
|
||||
|
||||
if (res.affected !== 1) {
|
||||
|
@ -21,7 +21,7 @@ async function main(username: string, headers?: string[]) {
|
||||
if (user == null) throw new Error('User not found');
|
||||
|
||||
const history = await Signins.find({
|
||||
userId: user.id
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
for (const signin of history) {
|
||||
|
Reference in New Issue
Block a user