This commit is contained in:
syuilo 2020-03-28 22:04:23 +09:00
parent 1957149337
commit a3fc2122e6

View file

@ -20,7 +20,8 @@ export const meta = {
};
export default define(meta, async (ps, user) => {
const query = AccessTokens.createQueryBuilder('token');
const query = AccessTokens.createQueryBuilder('token')
.where('token.userId = :userId', { userId: user.id });
switch (ps.sort) {
case '+createdAt': query.orderBy('token.createdAt', 'DESC'); break;