Skip to content

Commit

Permalink
Add brtOffer published state (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
LEV7n authored Sep 9, 2024
1 parent 131993a commit 41d957d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/kit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2260,6 +2260,7 @@ brtOffer = function(){
self.images = [];
self.geohash = '';
self.price = 0;
self.published = 1;

self.validation = function(){
if(!self.address) return 'address';
Expand All @@ -2283,7 +2284,8 @@ brtOffer = function(){
JSON.stringify({
t: self.tag,
a: self.tags,
c: self.condition
c: self.condition,
p: self.published
}) +
JSON.stringify(self.images) +
self.geohash +
Expand All @@ -2303,7 +2305,8 @@ brtOffer = function(){
condition: self.condition,
images: self.images,
geohash: self.geohash,
price: self.price
price: self.price,
published: self.published
};
}

Expand All @@ -2318,6 +2321,7 @@ brtOffer = function(){
t: self.tag,
a: self.tags,
c: self.condition,
p: self.published
}),
s5: JSON.stringify(self.images),
s6: self.geohash,
Expand All @@ -2338,6 +2342,7 @@ brtOffer = function(){
self.images = d.images;
self.geohash = d.geohash;
self.price = d.price;
self.published = d.published;
}

self.type = 'brtoffer';
Expand Down

0 comments on commit 41d957d

Please sign in to comment.