Skip to content

Commit

Permalink
fix(identity): šŸ› do not use http module utility functions, but use zeā€¦
Browse files Browse the repository at this point in the history
ā€¦ncode's one
  • Loading branch information
matteo-cristino committed Feb 2, 2024
1 parent f083d5a commit 44b6105
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/identity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Zencode } from "@restroom-mw/zencode";
import { NextFunction, Request, Response } from "express";
import axios from "axios";
import { Action } from "./actions";
import { chunks } from "@restroom-mw/http/src/utils";

export default (req: Request, res: Response, next: NextFunction) => {
const rr = new Restroom(req, res);
Expand All @@ -22,7 +21,7 @@ export default (req: Request, res: Response, next: NextFunction) => {
content = rr.combineDataKeys(data, keys);

if (zencode.match(Action.RESOLVE_DID)) {
for (let [did, urlName, o] of chunks(zencode.paramsOf(Action.RESOLVE_DID), 3)) {
for (let [did, urlName, o] of zencode.chunkedParamsOf(Action.RESOLVE_DID, 3)) {
let check_url : URL;
let url_resolver : URL;
try {
Expand Down

0 comments on commit 44b6105

Please sign in to comment.