Skip to content

Commit

Permalink
feat: use proper version of dependecies
Browse files Browse the repository at this point in the history
  • Loading branch information
pociej committed Apr 21, 2024
1 parent d98774d commit d0889a2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
[submodule "yagna"]
path = yagna
url = https://github.com/golemfactory/yagna.git
branch = js-sdk-deposit-poc
branch = deposits
9 changes: 8 additions & 1 deletion backend/src/services/yagna/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ export const Yagna = fastifyPlugin((fastify: FastifyInstance, opts, done) => {
handler: async (request, reply) => {
const requestUser = request.user;
const Yagna = container.cradle.Yagna;
await Yagna.createExecutor(requestUser._id);
try {
await Yagna.createExecutor(requestUser._id);
} catch (e) {
console.log("error", e);
reply.code(500).send({
message: "Unable to create executor",
});
}
const allocation = await Yagna.getUserAllocation(requestUser._id);
console.log("allocation", allocation);
if (!allocation) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/extendDepositForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const ExtendDepositForm = ({

useEffect(() => {
if (currentDeposit) {
setNewValidToTimestamp(currentDeposit.validTo);
setNewValidToTimestamp(Number(currentDeposit.validTo));
}
}, [currentDeposit]);

Expand Down
2 changes: 1 addition & 1 deletion golem-js
2 changes: 1 addition & 1 deletion golem-sdk-task-executor
10 changes: 7 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d0889a2

Please sign in to comment.