fix offer id
This commit is contained in:
parent
9dd77fe0bf
commit
72b073d982
2 changed files with 3 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ export class OfferManager {
|
|||
}
|
||||
|
||||
async UpdateUserOffer(ctx: Types.UserContext, req: Types.OfferConfig) {
|
||||
await this.storage.offerStorage.UpdateUserOffer(ctx.app_user_id, {
|
||||
await this.storage.offerStorage.UpdateUserOffer(ctx.app_user_id, req.offer_id, {
|
||||
expected_data: req.expected_data,
|
||||
label: req.label,
|
||||
price_sats: req.price_sats,
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ export default class {
|
|||
async DeleteUserOffer(appUserId: string, offerId: string, entityManager = this.DB) {
|
||||
await entityManager.getRepository(UserOffer).delete({ app_user_id: appUserId, offer_id: offerId })
|
||||
}
|
||||
async UpdateUserOffer(app_user_id: string, req: Partial<UserOffer>) {
|
||||
return this.DB.getRepository(UserOffer).update({ app_user_id, offer_id: req.offer_id }, req)
|
||||
async UpdateUserOffer(app_user_id: string, offerId: string, req: Partial<UserOffer>) {
|
||||
return this.DB.getRepository(UserOffer).update({ app_user_id, offer_id: offerId }, req)
|
||||
}
|
||||
|
||||
async GetUserOffers(app_user_id: string): Promise<UserOffer[]> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue