bla
This commit is contained in:
parent
de6a12a912
commit
9b12b070ef
2 changed files with 3 additions and 1 deletions
2
index.js
2
index.js
|
@ -558,6 +558,8 @@ fastify.post('/acceptTreasure', async (request, reply) => {
|
|||
if (treasureExists.success) {
|
||||
TreasureData[content.treasureUid].state = "Accepted";
|
||||
saveData(treasurePath, TreasureData);
|
||||
console.log(TreasureData[content.treasureUid].activityUid)
|
||||
console.log(ActivityData[TreasureData[content.treasureUid].activityUid])
|
||||
ActivityData[TreasureData[content.treasureUid].activityUid].treasureState = "Accepted";
|
||||
saveData(activityPath, ActivityData);
|
||||
GoldenUsers[TreasureData[content.treasureUid].activityUid] = {
|
||||
|
|
|
@ -167,7 +167,7 @@ function get_admin(type) {
|
|||
<div class="treasure-image">Image: <a href="${base_url}images/${treasureData[entry].image}.html" target="_blank"> Lien</a></div>
|
||||
<span class="treasure-footer">
|
||||
<div class="treasure-uid">UID: ${treasureData[entry].treasureUid}</div>
|
||||
<div class="treasure-date">UID: ${treasureData[entry].date}</div>
|
||||
<div class="treasure-date">DATE: ${treasureData[entry].date}</div>
|
||||
</span>
|
||||
<span class="treasure-btn">
|
||||
<div class="treasure-btn-accept">Accepter</div>
|
||||
|
|
Loading…
Reference in a new issue