Skip to content

Commit

Permalink
remove admin wallets post
Browse files Browse the repository at this point in the history
  • Loading branch information
saigonbitmaster committed Nov 18, 2023
1 parent 3790eeb commit cd74cd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
14 changes: 3 additions & 11 deletions api/src/adminwallet/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,15 @@ import {
Put,
Response,
Query,
Request,
} from '@nestjs/common';
import { CreateAdminWalletDto } from './dto/create.dto';
import { UpdateAdminWalletDto } from './dto/update.dto';
import { AdminWalletService } from './service';
import { queryTransform, formatRaList } from '../flatworks/utils/getlist';
import getToken from '../flatworks/utils/token';

import { JwtService } from '@nestjs/jwt';
import { userJwtPayload } from '../flatworks/types/types';

@Controller('adminwallets')
export class AdminWalletController {
constructor(
private readonly service: AdminWalletService,
private readonly jwtService: JwtService,
) {}
constructor(private readonly service: AdminWalletService) {}

@Get()
async index(@Response() res: any, @Query() query) {
Expand All @@ -37,7 +29,7 @@ export class AdminWalletController {
async find(@Param('id') id: string) {
return await this.service.findOne(id);
}

/*
@Post()
async create(@Body() createAdminWalletDto: CreateAdminWalletDto) {
return await this.service.create(createAdminWalletDto);
Expand All @@ -54,5 +46,5 @@ export class AdminWalletController {
@Delete(':id')
async delete(@Param('id') id: string) {
return await this.service.delete(id);
}
} */
}
5 changes: 3 additions & 2 deletions api/src/adminwallet/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ export class AdminWalletService {
return await this.model.findById(id).exec();
}

/*
async findByUser(userId: string): Promise<AdminWallet> {
return await this.model.findOne({ userId }).exec();
}

async create(
createAdminWalletDto: CreateAdminWalletDto,
): Promise<AdminWallet> {
Expand All @@ -57,5 +58,5 @@ export class AdminWalletService {
async delete(id: string): Promise<AdminWallet> {
return await this.model.findByIdAndDelete(id).exec();
}
} */
}
1 change: 1 addition & 0 deletions cms/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const App = () => {
zIndex: 100,
backgroundColor: "white",
overflowY: "hidden",
width: 250,
}}
>
@ {new Date().getFullYear()} Built on Cardano <br />
Expand Down

0 comments on commit cd74cd2

Please sign in to comment.