Skip to content

Commit

Permalink
Merge pull request #16 from rluisr/add-name-property
Browse files Browse the repository at this point in the history
Add `name`
  • Loading branch information
rluisr authored Sep 24, 2022
2 parents 9f5399e + 9b1d34a commit 97e9997
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ jobs:
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -68,9 +61,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.event_name != 'pull_request' }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
cache-from: type=gha
cache-to: type=gha,mode=max
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ tvbit-bot fetch your wallet balance and save it to DB. [cron.go](pkg/external/cr

```json
{
"name": "alert name, description or something",
"is_testnet": true,
"cex": "bybit",
"api_key": "",
Expand Down
1 change: 1 addition & 0 deletions pkg/domain/tv.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type TV struct {

type TVOrder struct {
gorm.Model
Name string `gorm:"type:varchar(255)" json:"name"` // alert name, description or something
CEX string `gorm:"type:varchar(255);not null" json:"-"`
SettingID uint64 `gorm:"type:uint;not null" json:"-"`
OrderID string `gorm:"type:varchar(255);uniqueIndex:order_id;not null"`
Expand Down

0 comments on commit 97e9997

Please sign in to comment.