fix lint
This commit is contained in:
		| @@ -53,11 +53,11 @@ export default define(meta, async (ps, user) => { | ||||
| 		description: ps.description, | ||||
| 		permission, | ||||
| 		callbackUrl: ps.callbackUrl, | ||||
| 		secret: secret | ||||
| 		secret: secret, | ||||
| 	}); | ||||
|  | ||||
| 	return await Apps.pack(app, null, { | ||||
| 		detail: true, | ||||
| 		includeSecret: true | ||||
| 		includeSecret: true, | ||||
| 	}); | ||||
| }); | ||||
|   | ||||
| @@ -23,15 +23,15 @@ export const meta = { | ||||
| 		noSuchApp: { | ||||
| 			message: 'No such app.', | ||||
| 			code: 'NO_SUCH_APP', | ||||
| 			id: 'dce83913-2dc6-4093-8a7b-71dbb11718a3' | ||||
| 		} | ||||
| 			id: 'dce83913-2dc6-4093-8a7b-71dbb11718a3', | ||||
| 		}, | ||||
| 	}, | ||||
|  | ||||
| 	res: { | ||||
| 		type: 'object' as const, | ||||
| 		optional: false as const, nullable: false as const, | ||||
| 		ref: 'App' | ||||
| 	} | ||||
| 		ref: 'App', | ||||
| 	}, | ||||
| }; | ||||
|  | ||||
| export default define(meta, async (ps, user, token) => { | ||||
| @@ -46,6 +46,6 @@ export default define(meta, async (ps, user, token) => { | ||||
|  | ||||
| 	return await Apps.pack(ap, user, { | ||||
| 		detail: true, | ||||
| 		includeSecret: isSecure && (ap.userId === user!.id) | ||||
| 		includeSecret: isSecure && (ap.userId === user!.id), | ||||
| 	}); | ||||
| }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo