@fonoster/identity 0.16.8 → 0.16.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -53,7 +53,7 @@ function createListApiKeys(prisma) {
|
|
|
53
53
|
const items = keys.map((key) => (Object.assign(Object.assign({}, key), { role: key.role })));
|
|
54
54
|
const response = {
|
|
55
55
|
items,
|
|
56
|
-
nextPageToken: (_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.ref
|
|
56
|
+
nextPageToken: items.length < pageSize ? undefined : (_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.ref
|
|
57
57
|
};
|
|
58
58
|
callback(null, response);
|
|
59
59
|
});
|
|
@@ -58,7 +58,7 @@ function createListWorkspaceMembers(prisma) {
|
|
|
58
58
|
items: items
|
|
59
59
|
.map((item) => (Object.assign(Object.assign({}, item), { name: item.user.name, email: item.user.email, role: item.role, status: item.status })))
|
|
60
60
|
.map(common_2.datesMapper),
|
|
61
|
-
nextPageToken: (_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.ref
|
|
61
|
+
nextPageToken: items.length < pageSize ? undefined : (_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.ref
|
|
62
62
|
});
|
|
63
63
|
});
|
|
64
64
|
return (0, common_1.withErrorHandlingAndValidation)(listWorkspaceMembers, common_1.Validators.listRequestSchema);
|
|
@@ -35,7 +35,7 @@ const getUserRefFromToken_1 = require("../utils/getUserRefFromToken");
|
|
|
35
35
|
const logger = (0, logger_1.getLogger)({ service: "identity", filePath: __filename });
|
|
36
36
|
function createListWorkspaces(prisma) {
|
|
37
37
|
const listWorkspaces = (call, callback) => __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
var _a
|
|
38
|
+
var _a;
|
|
39
39
|
const token = (0, common_1.getTokenFromCall)(call);
|
|
40
40
|
const userRef = (0, getUserRefFromToken_1.getUserRefFromToken)(token);
|
|
41
41
|
const access = (0, common_1.decodeToken)(token);
|
|
@@ -77,7 +77,7 @@ function createListWorkspaces(prisma) {
|
|
|
77
77
|
});
|
|
78
78
|
callback(null, {
|
|
79
79
|
items: items.map(common_1.datesMapper),
|
|
80
|
-
nextPageToken:
|
|
80
|
+
nextPageToken: undefined
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
return (0, common_1.withErrorHandlingAndValidation)(listWorkspaces, common_1.Validators.listRequestSchema);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/identity",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.10",
|
|
4
4
|
"description": "Identity service for Fonoster",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jsonwebtoken": "^9.0.6"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "01b11ee98556983fa4dae5aabc0daa66bcbe9e82"
|
|
52
52
|
}
|