Skip to content

Commit 565d06f

Browse files
committed
scope -> scopes
1 parent 64d4930 commit 565d06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/app/src/server/models/access-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ accessTokenSchema.statics.findUserIdByToken = async function(token: string, requ
119119

120120
accessTokenSchema.statics.findTokenByUserId = async function(userId: Types.ObjectId | string) {
121121
const now = getNowDate();
122-
return this.find({ user: userId, expiredAt: { $gte: now } }).select('_id expiredAt scope description');
122+
return this.find({ user: userId, expiredAt: { $gte: now } }).select('_id expiredAt scopes description');
123123
};
124124

125125
accessTokenSchema.statics.validateTokenScopes = async function(token: string, requiredScopes: Scope[]) {

0 commit comments

Comments
 (0)