Skip to content

Commit

Permalink
fix: PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Dec 1, 2021
1 parent 16e31a3 commit c80b030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Item/Item.router.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import supertest from 'supertest'
import { v4 as uuidv4 } from 'uuid'
import { Wallet } from 'ethers'
import { omit } from 'decentraland-commons/dist/utils'
import { utils } from 'decentraland-commons'
import {
createAuthHeaders,
buildURL,
Expand Down Expand Up @@ -323,7 +323,7 @@ describe('Item router', () => {

beforeEach(() => {
url = `/items/${dbItem.id}`
itemToUpsert = omit(dbItem, ['created_at', 'updated_at'])
itemToUpsert = utils.omit(dbItem, ['created_at', 'updated_at'])
})

describe('and the param id is different from payload id', () => {
Expand Down
1 change: 1 addition & 0 deletions src/Item/Item.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export class ItemService {
this.checkItemIsMovedToAnotherCollection(item, dbItem)
} else {
item.created_at = new Date()
item.updated_at = item.created_at
}

const collectionId = item.collection_id || dbItem?.collection_id
Expand Down

0 comments on commit c80b030

Please sign in to comment.