Skip to content

Commit

Permalink
fix: #OBS-I452 Dataset alias attach response message
Browse files Browse the repository at this point in the history
  • Loading branch information
JeraldJF committed Jan 16, 2025
1 parent 191e146 commit 5079252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-service/src/controllers/DatasetAlias/AttachAlias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const attachAlias = async (req: Request, res: Response) => {
const { dataset_id, alias_name } = _.get(req, ["body", "request"])
const userID = (req as any)?.userID;
await Dataset.update({ alias: alias_name, updated_by: userID }, { where: { id: dataset_id } });
ResponseHandler.successResponse(req, res, { status: httpStatus.OK, data: { message: `Dataset alias name attached successfully`, dataset_id } });
ResponseHandler.successResponse(req, res, { status: httpStatus.OK, data: { message: `Dataset alias name '${alias_name}' attached successfully`, dataset_id } });
}

export default attachAlias;

0 comments on commit 5079252

Please sign in to comment.