Skip to content

Commit

Permalink
feat: update based on feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Nov 20, 2023
1 parent 4625d13 commit 6b519fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,4 @@
*/
-- AlterTable
ALTER TABLE "proxies" ADD COLUMN "location" TEXT NOT NULL;

-- CreateTable
CREATE TABLE "L2AggregatorPair" (
"id" BIGSERIAL NOT NULL,
"l1_aggregator_addresss" TEXT NOT NULL,
"l2_aggregator_addresss" TEXT NOT NULL,
"active" BOOLEAN NOT NULL DEFAULT false,
"chain_id" BIGINT NOT NULL,

CONSTRAINT "L2AggregatorPair_pkey" PRIMARY KEY ("id")
);

-- AddForeignKey
ALTER TABLE "L2AggregatorPair" ADD CONSTRAINT "L2AggregatorPair_chain_id_fkey" FOREIGN KEY ("chain_id") REFERENCES "chains"("chain_id") ON DELETE RESTRICT ON UPDATE CASCADE;
ALTER TABLE "proxies" ADD COLUMN "location" TEXT NOT NULL;
2 changes: 1 addition & 1 deletion api/src/proxy/proxy.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('ProxyService', () => {
expect(proxyObjWithoutLocation.protocol).toBe(proxyDataWithoutLocation.protocol)
expect(proxyObjWithoutLocation.host).toBe(proxyDataWithoutLocation.host)
expect(proxyObjWithoutLocation.port).toBe(proxyDataWithoutLocation.port)

expect(proxyObjWithoutLocation.location).toBe(null)
// The same proxy cannot be defined twice
await expect(async () => {
await proxy.create(proxyData)
Expand Down

0 comments on commit 6b519fa

Please sign in to comment.