This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@ -13,7 +13,7 @@ async function main(name: string, url: string, alias?: string): Promise<any> {
name,
url,
aliases,
updatedAt: new Date()
updatedAt: new Date(),
});
}

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {