lintをGitHub Actions でするように (#6101)
* package.json の lint スクリプトを修正 * lint アクションを追加 * yarn lint --fix * 手動修正
This commit is contained in:
@ -82,7 +82,7 @@ export default define(meta, async (ps, user) => {
|
||||
id: ps.userListId,
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
|
||||
if (userList == null) {
|
||||
throw new ApiError(meta.errors.noSuchUserList);
|
||||
}
|
||||
@ -91,7 +91,7 @@ export default define(meta, async (ps, user) => {
|
||||
userGroupId: ps.userGroupId,
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
|
||||
if (userGroupJoining == null) {
|
||||
throw new ApiError(meta.errors.noSuchUserGroup);
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ export default define(meta, async (ps, user) => {
|
||||
id: ps.userListId,
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
|
||||
if (userList == null) {
|
||||
throw new ApiError(meta.errors.noSuchUserList);
|
||||
}
|
||||
@ -110,7 +110,7 @@ export default define(meta, async (ps, user) => {
|
||||
userGroupId: ps.userGroupId,
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
|
||||
if (userGroupJoining == null) {
|
||||
throw new ApiError(meta.errors.noSuchUserGroup);
|
||||
}
|
||||
|
@ -11,7 +11,8 @@ export default class extends Channel {
|
||||
public async init(params: any) {
|
||||
// Subscribe main stream channel
|
||||
this.subscriber.on(`mainStream:${this.user!.id}`, async data => {
|
||||
let { type, body } = data;
|
||||
const { type } = data;
|
||||
let { body } = data;
|
||||
|
||||
switch (type) {
|
||||
case 'notification': {
|
||||
|
Reference in New Issue
Block a user