mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚨 Use shortand property syntax for object literals
This commit is contained in:
parent
48ffe97849
commit
3fade63567
15 changed files with 31 additions and 31 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ export class Instance extends BaseInterface<typeof Instances> {
|
|||
name: metadata.name,
|
||||
version: metadata.software.version,
|
||||
logo: metadata.logo,
|
||||
protocol: protocol,
|
||||
protocol,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue