Skip to content

Commit 160cf7e

Browse files
fix social endpoints used by auto-gold-bits app
1 parent 305e42f commit 160cf7e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/authproxy/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const MigratorLive = Effect.gen(function* () {
5353
return PgMigrator.layer({ loader });
5454
}).pipe(Layer.unwrapEffect);
5555

56-
HttpLayerRouter.serve(AllRoutes).pipe(
56+
HttpLayerRouter.serve(AllRoutes, { routerConfig: { maxParamLength: 500 } }).pipe(
5757
Layer.provide(Repository.Default),
5858
Layer.provide(MigratorLive),
5959
Layer.provide(SqlLive),

packages/tinytower-sdk/src/Endpoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export const SocialGetGiftsEndpoint = HttpApiEndpoint.get(
386386
);
387387

388388
/** @internal */
389-
export const SocialReceiveGiftEndpoint = HttpApiEndpoint.post(
389+
export const SocialReceiveGiftEndpoint = HttpApiEndpoint.get(
390390
"SocialReceiveGift"
391391
)`/receive_item/tt/${playerIdParam}/${giftIdParam}/${saltParam}/${hashParam}`
392392
.addSuccess(ErrorResponse)

packages/tinytower-sdk/src/TinyTower.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ export const social_sendItem = Effect.fn("social_sendItem")(function* ({
873873

874874
const salt = yield* nimblebitAuth.salt;
875875
const hash = yield* nimblebitAuth.sign(
876-
`tt/${itemType}/${playerId}/${salt}${itemStr}${Redacted.value(playerAuthKey)}`
876+
`tt/${itemType}/${playerId}/${friendId}/${salt}${itemStr}${Redacted.value(playerAuthKey)}`
877877
);
878878

879879
const response = yield* endpoint({

0 commit comments

Comments
 (0)