@webiny/api-page-builder-so-ddb
Version:
The DynamoDB storage operations Webiny Page Builder API.
23 lines (21 loc) • 477 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createSortKey = exports.createPartitionKey = void 0;
const createPartitionKey = params => {
const {
tenant,
locale
} = params;
return `T#${tenant}#L#${locale}#PB#C`;
};
exports.createPartitionKey = createPartitionKey;
const createSortKey = params => {
const {
slug
} = params;
return slug;
};
exports.createSortKey = createSortKey;
//# sourceMappingURL=keys.js.map