refactor: 🚨 Use shortand property syntax for object literals

This commit is contained in:
Jesse Wierzbinski 2024-10-03 13:41:58 +02:00
parent 48ffe97849
commit 3fade63567
No known key found for this signature in database
15 changed files with 31 additions and 31 deletions

View file

@ -230,7 +230,7 @@ export class Emoji extends BaseInterface<typeof Emojis, EmojiWithInstance> {
alt: Object.entries(emoji.url)[0][1].description || undefined,
contentType: Object.keys(emoji.url)[0],
visibleInPicker: true,
instanceId: instanceId,
instanceId,
});
}
}

View file

@ -338,7 +338,7 @@ export class Instance extends BaseInterface<typeof Instances> {
name: metadata.name,
version: metadata.software.version,
logo: metadata.logo,
protocol: protocol,
protocol,
});
}

View file

@ -140,7 +140,7 @@ export class OAuthManager {
await db.insert(OpenIdAccounts).values({
serverId: sub,
issuerId: this.issuer.id,
userId: userId,
userId,
});
}
@ -273,9 +273,9 @@ export class OAuthManager {
);
return {
userInfo: userInfo,
flow: flow,
claims: claims,
userInfo,
flow,
claims,
};
}
}

View file

@ -118,7 +118,7 @@ export class Relationship extends BaseInterface<
for (const subjectId of missingSubjectsIds) {
await Relationship.insert({
ownerId: owner.id,
subjectId: subjectId,
subjectId,
languages: [],
following: false,
showingReblogs: false,

View file

@ -167,12 +167,12 @@ export class Timeline<Type extends Note | User> {
case TimelineType.Note:
return {
link,
objects: objects,
objects,
};
case TimelineType.User:
return {
link,
objects: objects,
objects,
};
}
}